Commit Graph

1445 Commits

Author SHA1 Message Date
rubidium 991996eb36 (svn r10153) -Fix [FS#869]: vehicles disappear when crossing certain tiles. Fix by B. N. SmatZ!. 2007-06-13 23:14:08 +00:00
truelight ab6883bc19 (svn r10150) -Fix r10148: show a message to users when using 32bpp blitter and no libpng available 2007-06-13 19:34:33 +00:00
truelight 79817428b1 (svn r10149) -Fix r10143: MSVC warnings... (tnx boekabart and glx) 2007-06-13 19:05:42 +00:00
truelight 4b51ea375b (svn r10148) -Fix r10143: make --without-png to compile again 2007-06-13 18:52:06 +00:00
rubidium 2c6bf89e02 (svn r10147) -Fix: the oldloader did clear some bits for road vehicles that shouldn't be cleared in some cases. 2007-06-13 18:36:04 +00:00
belugas 0b65070b36 (svn r10146) -Codechange: Silence a compiler warning
-Codechange: Comment style beautifying
-Codechange: define (tentatively) var 0x44 and 0x61 for industry tiles
2007-06-13 18:35:06 +00:00
rubidium 197a8fd5f3 (svn r10145) -Fix: make compiling with networking disabled (again) possible. 2007-06-13 17:34:05 +00:00
truelight b7443d800b (svn r10143) -Add: store the filename of the grfs opened and allow easy access to the name
-Codechange: store the SpriteID in the spritecache too
-Add: add a PNG loader for graphical files
-Documentation: added a document to explain the PNG format
2007-06-13 16:21:11 +00:00
truelight 4185c4afcd (svn r10142) -Fix r10132: do something useful with the alpha channel instead of ignoring it 2007-06-13 16:04:35 +00:00
celestar 5f1791bfb1 (svn r10141) -Fix (FS#848, r8973): Set the newgrf bit for realistic plane speeds (bulb) 2007-06-13 15:24:40 +00:00
rubidium 91420c0d8d (svn r10140) -Fix [FS#867]: an industry could overbuild a bridge. 2007-06-13 15:22:28 +00:00
rubidium a702f6b3a8 (svn r10139) -Fix: all inner parts of OpenTTD assume that the resolution is at least 1 by 1, so force the resolution to be always at least 1 by 1. 2007-06-13 14:57:42 +00:00
rubidium 504d93c499 (svn r10138) -Fix: when you got a sufficiently small resolution, there is a possibility for a division by zero when a sound is played. 2007-06-13 14:56:27 +00:00
rubidium 112f05e705 (svn r10137) -Add: console command to get the current game date. 2007-06-13 14:52:41 +00:00
truelight e7221d1fa9 (svn r10132) -Codechange: split out the last direct video-buffer read access to the blitter-layer
-Add: added a new renderer and blitter to make room for some optimized bpp
-Fix: fill the alpha channel in the grf-spriteloader
2007-06-13 10:31:40 +00:00
rubidium 97b74fe4f2 (svn r10131) -Fix [FS#810]: when removing a dock, a ship will always try to reach the old location of the dock even when it cannot anymore because it the old location of the dock is now land instead of water. 2007-06-13 09:12:10 +00:00
maedhros 860fe49b80 (svn r10130) -Fix (r4493): SetCurrentGrfLangID returned the wrong language ids for most languages. 2007-06-13 07:59:20 +00:00
peter1138 f477075a0b (svn r10129) -Fix (r10111): Test for x == INVALID_COORD instead of v->tile == INVALID_TILE to determine if a vehicle should be removed from the has. 2007-06-13 07:14:42 +00:00
peter1138 f7e4d4d6e7 (svn r10128) -Fix (r4811): missing printf parameters in newgrf debug message 2007-06-13 06:42:43 +00:00
belugas 30863358f9 (svn r10127) -Add: Addition of basic structure for industry tiles callbacks (unfinished).
-Codechange: ResolverObject receives member gfx, making it compatible for both industries and industry tiles
-Codechange: NewIndustryResolver now has his randombits and triggers (even if not implemented)
2007-06-13 02:29:08 +00:00
glx da1743e980 (svn r10126) -Fix (r10111, FS#864): old_new_hash cache was not reset when the position hash were 2007-06-13 01:38:00 +00:00
rubidium 031565527e (svn r10125) -Fix [FS#865]: under some circumstances the wagons of a train didn't get loaded properly. 2007-06-12 23:35:10 +00:00
truelight 2f5c49abc2 (svn r10124) -Fix r10123: fix the OSX video driver properly 2007-06-12 23:10:47 +00:00
bjarni ee4208ffe9 (svn r10123) -Fix r10121: the 8 bpp cocoa video driver works again 2007-06-12 23:06:56 +00:00
maedhros 12be876131 (svn r10122) -Codechange: Add a CountBitsSet function and use it to replace some less efficient loops. 2007-06-12 22:13:49 +00:00
truelight f3f744d36a (svn r10121) -Codechange: split renderer from rest of code; no longer any code directly accesses the video-buffer
-Add: added NULL blitter and renderer, which are always used for -vnull
-Add: dedicated driver doesn't blit nor render by default. Can be overruled by user. (-D -b 8bpp-optimized)
-Remove: removed CTRL+D from win32, which is incompatible with above
-Add: extended screenshot support for PNG and BMP
-Codechange: remove all hardcoded 8bpp references and replace them with more dynamic ones
-Codechange: minor stuff in blitters
2007-06-12 20:24:12 +00:00
miham 381b11c979 (svn r10119) -Update: WebTranslator2 update to 2007-06-12 20:09:56
bulgarian  - 1 fixed by thetitan (1)
estonian   - 23 changed by kristjans (23)
italian    - 2 fixed by lorenzodv (2)
korean     - 2 fixed by darkttd (2)
romanian   - 28 fixed, 59 changed by CrystyB (87)
swedish    - 31 fixed by giddorah (31)
ukrainian  - 3 fixed by mad (3)
2007-06-12 18:10:14 +00:00
maedhros 49ba521e77 (svn r10117) -Fix [FS#863]: When deleting the vehicles of bankrupt players, delete trains as
a whole rather than each part individually, as that leads to invalid tests on
parts that have already been deleted.
2007-06-12 17:10:52 +00:00
rubidium 73790d9cd6 (svn r10116) -Fix [FS#850]: remove invalid characters (for the file system) from savegame names. Based on a patch by TheJosh. 2007-06-12 15:46:34 +00:00
belugas 4df44a4dff (svn r10115) -Codechange: Create accessors to triggers and random bits for industries.
Implementation will follow soon.
2007-06-12 14:22:28 +00:00
maedhros 109dd33c4a (svn r10114) -Fix: Only load newgrf error messages if the language matches the current
language. Since only one error can be loaded anyway, if the language didn't
match you'd get "Undefined string". Also since we're only loading one language
there's no need to use AddGRFString any more.
2007-06-12 13:22:14 +00:00
peter1138 d1e71eb34e (svn r10113) -Fix (r10092): Missing svn properties and some Id/@file comments 2007-06-12 12:27:40 +00:00
peter1138 78d797a6b7 (svn r10111) -Codechange: Add new vehicle hash table for collision detection and finding vehicles on a tile. The hash area scanned is far smaller than the old hash table, which is now used for viewport updates only. This should give a significant performance improvement for games with many vehicles. (Based on work by 'B. N. SmatZ!' and 'madman2003') 2007-06-12 11:22:32 +00:00
maedhros 105c7455ae (svn r10110) -Fix: Reset NewGRF errors along with all the other NewGRF data so that errors get loaded again when pressing "Apply". 2007-06-12 09:41:12 +00:00
rubidium be0539cb43 (svn r10109) -Fix [FS#838]: some NewGRFs use the same (unused in the "current" climate) sprite IDs. Normally this gives some artefacts, but when one NewGRF expects it to be a sprite and another NewGRF overwrites it with a non-sprite nasty things happen (drawing a non-sprite crashes OTTD). 2007-06-12 09:40:50 +00:00
belugas 8efb7e53ec (svn r10108) -Codechange: implement variable 0x60 (Get industry tile ID at offset) for industries.
It is exposed for for industry tiles who will reuse it too, for variable 0x62.
2007-06-12 00:49:50 +00:00
peter1138 28c5730583 (svn r10107) -Fix (r10092): Missing 'i' in 'optimized' 2007-06-11 21:17:02 +00:00
rubidium 01593bdb6a (svn r10106) -Fix (r10098): there's always a compiler complaining about something... 2007-06-11 19:29:42 +00:00
truelight d0250f6108 (svn r10105) -Fix r10092: fix sprite 4845 till 4881 (inclusive), so they store the data as on the disk in the memory, as the old landscape generate assumes this. Talking about ugly hacks... 2007-06-11 18:49:55 +00:00
miham 30627e6eeb (svn r10104) -Update: WebTranslator2 update to 2007-06-11 19:45:13
catalan    - 4 changed by arnaullv (4)
czech      - 3 fixed, 1 changed by Hadez (4)
danish     - 2 fixed by MiR (2)
dutch      - 1 fixed by habell (1)
estonian   - 2 fixed, 15 changed by kristjans (17)
french     - 3 fixed by glx (3)
hungarian  - 2 fixed by miham (2)
2007-06-11 17:45:32 +00:00
maedhros 560a542354 (svn r10103) -Fix (r10086): TrackBitsToTrack doesn't cope well with TRACK_BIT_NONE (e.g. non-rail tiles), so use FindFirstTrack instead. 2007-06-11 16:41:34 +00:00
truelight 4ad6639475 (svn r10102) -Documentation: @file header was wrong 2007-06-11 15:14:57 +00:00
truelight d2d25295ce (svn r10101) -Codechange: the class is named 8bppSimple, so name the files like that too 2007-06-11 15:13:30 +00:00
truelight 31ade47910 (svn r10100) -Fix r10093: some code now became obsolete as it never did something 2007-06-11 14:45:26 +00:00
belugas 81c7c87ed7 (svn r10099) -Fix(r9867, FS860): Use the specs of the to-be-created industry instead of the scanned industry
Spotted by Oxygene
2007-06-11 14:25:38 +00:00
rubidium cc4d18ecc4 (svn r10098) -Codechange: bilbo cared about the performance of the AI with respect to the airport placement, so he rewrote the aircraft handling of the AI; now it can actually make lots of money again :) 2007-06-11 14:23:04 +00:00
maedhros 3e326085fa (svn r10097) -Feature: Add support for articulated road vehicles, or callbacks 11 and 17 for
road vehicles for those who prefer the technical explanation.
2007-06-11 14:00:16 +00:00
truelight be0f5cf877 (svn r10096) -Fix r10092: freetype bypassed the Blitter::Encode, making fonts look weird 2007-06-11 13:38:11 +00:00
truelight 9d570fa018 (svn r10095) -Fix: avoid reading outside the buffer because of scaling problems 2007-06-11 12:51:27 +00:00
rubidium f98b175cf5 (svn r10094) -Fix: some really broken strings got in. 2007-06-11 12:44:02 +00:00
truelight a391f03ae2 (svn r10093) -Revert: removed 16x zoom-out as it is broken beyond repair 2007-06-11 11:59:36 +00:00
truelight 6b101cc177 (svn r10092) -Codechange: code-seperated the spriteloader and blitter from the rest of the code
-Add: make it possible to pick your own blitter (-b <blitter>, -h for overview)
-Add: added a new optimized 8bpp blitter (default, caches sprites of all zoom-levels)
-Add: added a debug 8bpp blitter and a very slow normal 8bpp blitter
2007-06-11 11:50:49 +00:00
maedhros 96a3a89c86 (svn r10089) -Fix (r10040): Use GetTileZ instead of GetClearGround in GetTerrainType as
GetTileZ is valid for any tile type. Also use GetTerrainType for stations.
2007-06-11 04:52:51 +00:00
belugas 94200b63b8 (svn r10088) -Codechange: A typo and a code-style 2007-06-10 23:40:29 +00:00
rubidium 5f5ab6cc87 (svn r10087) -Fix [FS#834]: multiple subsequent "give money" actions could result in duplicate messages that money has been transfered when it only happened once. 2007-06-10 21:34:45 +00:00
maedhros fe3a7cc5ed (svn r10086) -Codechange: Use more sensible types and functions in GenericPlaceSignals. 2007-06-10 21:28:20 +00:00
rubidium a0ffa793cc (svn r10085) -Fix [FS#839]: message that you had given money appeared even when an error occured. 2007-06-10 20:49:11 +00:00
rubidium 77b06e922f (svn r10084) -Fix [FS#855]: reversing a train when loading at a station crashed. 2007-06-10 20:27:28 +00:00
rubidium d0ad020dc6 (svn r10082) -Fix [FS#846]: another memory leak in the networking code (benc). 2007-06-10 19:59:08 +00:00
rubidium 7767e466e5 (svn r10081) -Fix [FS851]: towns/AIs didn't build bridges anymore (boekabart). 2007-06-10 10:52:19 +00:00
bjarni ff40914740 (svn r10080) -Cleanup: replaced magic numbers in SubtractMoneyFromAnyPlayer() with enum values 2007-06-10 09:37:09 +00:00
miham ab89ee7770 (svn r10079) -Update: WebTranslator2 update to 2007-06-10 08:31:40
bulgarian  - 29 fixed by thetitan (29)
catalan    - 1 fixed by arnaullv (1)
estonian   - 159 changed by kristjans (159)
2007-06-10 06:31:51 +00:00
belugas 08c9365971 (svn r10078) -Codechange: Centralize all industry counts data and access 2007-06-10 01:25:21 +00:00
bjarni 3afea2d673 (svn r10077) -Fix: FS#845 Cloning Trains Longer Than 8 Units Causes Crash
The problem was that if adding units to the clone (wagon by wagon) failed, then cloning wouldn't notice it and it made two half trains
  Now it detects this case and it will make cloning fail. The string with the explanation for the failed move will be used in the error message so the user will know why it failed.
2007-06-09 18:31:04 +00:00
miham ec25b71bd4 (svn r10076) -Update: WebTranslator2 update to 2007-06-09 10:29:27
danish     - 1 fixed by ThomasA (1)
estonian   - 1 fixed, 96 changed by kristjans (97)
german     - 29 fixed by Neonox (29)
hungarian  - 1 fixed by miham (1)
italian    - 1 fixed by lorenzodv (1)
japanese   - 1 fixed by ickoonite (1)
korean     - 1 fixed by darkttd (1)
2007-06-09 08:31:41 +00:00
rubidium 02146b13c8 (svn r10075) -Fix [FS#844]: small memory leak on some early returns. 2007-06-09 04:01:40 +00:00
belugas 9a4a911bde (svn r10074) -Add: Addition of IndustryOverrideManager as well as the basic (and unfinished) support for callbacks for industries 2007-06-09 02:05:51 +00:00
rubidium 142f2aba15 (svn r10073) -Codechange: make the NewGRF paths in the config file without any full paths (again). 2007-06-08 21:16:17 +00:00
truelight 653b343018 (svn r10072) -Fix r10070: typo in zoom.hpp 2007-06-08 19:06:35 +00:00
rubidium 6b1cb3aaae (svn r10071) -Feature [FS#828]: moving of orders (skidd13). 2007-06-08 18:59:29 +00:00
truelight 98c3056aa6 (svn r10070) -Fix: fix the rounding problem of zoom-levels in zoom.hpp, so it is global for every call 2007-06-08 18:45:14 +00:00
truelight d3a7fb8d73 (svn r10069) -Documentation: some documentation for TIC/TOC, as it isn't what I expected... 2007-06-08 18:23:26 +00:00
rubidium 5b972a1d58 (svn r10068) -Fix [FS#835]: coverage area highlight was still show when it was turned off for docks. 2007-06-08 18:15:11 +00:00
belugas e8c6d57150 (svn r10066) -Codechange: Expose function GetNearbyTile by moving it to newgrf_commons.[cpp|h]. Will be used by industries in a few. 2007-06-08 17:54:18 +00:00
glx 6983d0b547 (svn r10065) -Cleanup (r9850): remove now unneeded stuff 2007-06-08 16:53:21 +00:00
belugas f51b869e69 (svn r10064) -Fix(r10063): compile again, when changing stuff. DOn't trust first run 2007-06-08 15:59:03 +00:00
belugas 7586143e3b (svn r10063) -Codechange: Change VARDEF for extern
-CodeChange: Add the count of industries, basic support for variable 67, var action02 forindustries
2007-06-08 15:48:48 +00:00
peter1138 9c66082b07 (svn r10062) -Codechange: Don't redraw all station tiles when cargo is added or removed if the station has no custom graphics. 2007-06-08 09:35:39 +00:00
peter1138 29f6ae952c (svn r10061) -Codechange: [NewGRF] Add common cargo subtype support to vehicle var 42 2007-06-08 06:27:58 +00:00
miham 246791424b (svn r10060) -Update: WebTranslator2 update to 2007-06-08 07:51:39
estonian   - 228 changed by kristjans (228)
japanese   - 13 fixed by ickoonite (13)
portuguese - 2 fixed by izhirahider (2)
slovenian  - 99 fixed by Necrolyte (99)
2007-06-08 05:51:57 +00:00
peter1138 c1df3a8aa6 (svn r10059) -Fix (r10045): Pretend GRF is still in initialisation state when leaving reservation stage. This fixes action 7/9 tests for grfs that will be active. 2007-06-07 18:13:31 +00:00
rubidium 8a74b2ebe1 (svn r10058) -Codechange: give some industry variable sensible names (like not telling "last_mo_production" when it is the production of the current month). 2007-06-07 14:38:45 +00:00
rubidium 622a4d10b9 (svn r10056) -Revert (r10049): removing SLE_WRITEBYTE didn't work as expected :(. Somehow SlIterateArray and SlObject depend on eachother and adding a some arbitrary data before the SlObject makes it go crazy. 2007-06-07 12:37:48 +00:00
miham 9a81f009a0 (svn r10055) -Update: WebTranslator2 update to 2007-06-07 14:37:06
brazilian_portuguese - 3 fixed by tucalipe (3)
catalan    - 3 fixed by arnaullv (3)
danish     - 1 fixed by ThomasA (1)
estonian   - 99 fixed by kristjans (99)
galician   - 8 fixed by Condex (8)
norwegian_nynorsk - 35 fixed by pollux (35)
2007-06-07 12:37:27 +00:00
rubidium 40cea6c3ef (svn r10054) -Codechange: make the industries cost modifier look more like the original one, so it's much easier to support industries that use this original format. 2007-06-07 09:20:04 +00:00
rubidium 770d7188ac (svn r10053) -Fix: could not clear a level-crossing tile with tram tracks. 2007-06-07 08:58:21 +00:00
peter1138 041c946119 (svn r10052) -Codechange: Support reserve/activate stage bits of action 7/9 variable 84. 2007-06-07 07:20:44 +00:00
rubidium eab8ac49ce (svn r10049) -Codechange: get rid of the SLE_WRITEBYTE obfuscation. 2007-06-06 23:57:21 +00:00
peter1138 07c34b2628 (svn r10048) -Fix (r6455): Don't use override engine type for articulated wagon parts. 2007-06-06 10:51:11 +00:00
miham 4ffe147bd4 (svn r10047) -Update: WebTranslator2 update to 2007-06-06 07:59:17
croatian   - 58 fixed by knovak (58)
czech      - 3 fixed by Hadez (3)
danish     - 28 fixed by ThomasA (28)
dutch      - 23 fixed by habell (23)
italian    - 3 fixed by lorenzodv (3)
korean     - 3 fixed by darkttd (3)
ukrainian  - 3 fixed by mad (3)
2007-06-06 05:59:32 +00:00
rubidium 2045611078 (svn r10046) -Documentation: add some documentation in order_gui (skidd13). 2007-06-05 22:17:03 +00:00
peter1138 fdb7ef8703 (svn r10045) -Codechange: Process Action 8 during GLS_RESERVATION to allow Action 7/Action 9s to work properly 2007-06-05 21:41:31 +00:00
peter1138 4258139a52 (svn r10044) -Fix: Minor NewGRF debug message fixes, and skip sprites of an unsupported Action 5 feature. 2007-06-05 20:49:32 +00:00
truelight 7d0a1c91d4 (svn r10043) -Change: make templates of the blitters, based on zoom and mode, which makes the optimizing better, and therefor a higher blitter speed (tnx boekabart)
-Codechange: unify the MainBlitter a bit more
2007-06-05 12:01:50 +00:00
peter1138 4403d41934 (svn r10042) -Codechange: Replace hardcoded spritecache size with a configuration
option, sprite_cache_size. The default size is 2MB and the value can 
range from 1 to 64MB. If you experience slow-downs when scrolling the 
map, try increasing this setting.
2007-06-05 10:40:29 +00:00
miham 959eaae6a4 (svn r10041) -Update: WebTranslator2 update to 2007-06-05 08:19:09
czech      - 34 fixed by Hadez (34)
french     - 3 fixed by glx (3)
hungarian  - 4 fixed by miham (4)
ukrainian  - 4 fixed by mad (4)
2007-06-05 06:19:27 +00:00
belugas a95fdc8bb5 (svn r10040) -Codechange: Make the function GetTerrainType public, as other functions require it 2007-06-05 01:49:08 +00:00
bjarni 9f44031a27 (svn r10039) -Fix: [autoreplace] when trying to replace an engine that can't carry the wagons the old one carries (GRF restrictoin), then don't try to replace at all 2007-06-04 20:46:01 +00:00
peter1138 18b98ad6aa (svn r10038) -Fix (r8634): Sprite resulting from '?' substitution was reloaded into the cache entry for SPR_IMG_QUERY instead of the original sprite cache entry. This resulted in unaccounted missing sprite cache memory, and was exacerbated because the original missing sprite was not cached, so it did it again and again and again. Slowdowns and boom. Etc. 2007-06-04 20:42:49 +00:00
glx 32a04368b3 (svn r10037) -Fix (r10035, r10036): silence some 'may be used uninitialized' warnings 2007-06-04 20:06:54 +00:00
glx 62524492d5 (svn r10036) -Add: sort the strings in town names dropdown 2007-06-04 19:51:31 +00:00
glx 59cb4da628 (svn r10035) -Change: simplified network language string sorting 2007-06-04 19:49:00 +00:00
rubidium a99ed285cb (svn r10034) -Change: remove the string changed in r10033 from the translations, so it will be properly translated in all languages. 2007-06-04 19:39:16 +00:00
rubidium c4806955e5 (svn r10033) -Feature [FS#760]: skip to the selected order in the order list when clicking on the "skip" button while pressing CTRL. 2007-06-04 19:32:45 +00:00
glx cb340626ca (svn r10032) -Add: sort the strings in server language dropdown 2007-06-04 16:07:22 +00:00
miham f61029d47e (svn r10031) -Update: WebTranslator2 update to 2007-06-04 08:32:00
brazilian_portuguese - 33 fixed by tucalipe (33)
bulgarian  - 25 fixed by thetitan (25)
catalan    - 31 fixed by arnaullv (31)
czech      - 28 fixed by Hadez (28)
dutch      - 12 fixed by webfreakz (12)
french     - 25 fixed, 5 changed by glx (30)
german     - 42 fixed by Neonox (42)
hungarian  - 32 fixed by miham (32)
italian    - 25 fixed by lorenzodv (25)
japanese   - 34 fixed by ickoonite (34)
korean     - 25 fixed by darkttd (25)
norwegian_nynorsk - 63 fixed by pollux (63)
portuguese - 45 fixed by izhirahider (45)
slovak     - 39 fixed by lengyel (39)
ukrainian  - 27 fixed by znikoz (27)
2007-06-04 06:34:00 +00:00
rubidium 6a60ba3eaa (svn r10030) -Fix [FS#823]: one could build on (some) slopes when building on slopes was disabled. 2007-06-03 19:22:23 +00:00
rubidium a752c73469 (svn r10029) -Fix (r9923): trams should not/cannot turn on roadworks. 2007-06-02 21:07:03 +00:00
peter1138 43482d22d0 (svn r10028) -Fix (r2270/r2951): When deleting the first engine of a train with multiple engines, only reopen the train window if the player had the original train window open. This fixes 'random' windows opening for multiple players of the same company. 2007-06-02 20:08:23 +00:00
bjarni e129438139 (svn r10026) -Fix: unlinking a rail vehicle didn't clear the first pointer
After r9973, this could cause some asserts as some vehicles could end up with first pointers to chains they didn't belong to
2007-06-02 17:23:31 +00:00
bjarni 532391db12 (svn r10025) -Fix: [build windows] sorting planes for capacity didn't check mail capacity. Now mail capacity is used if passenger capacity is the same
The sort will still resort to EngineID if both mail and passenger capacities are the same
2007-06-02 15:47:38 +00:00
bjarni 81698422a2 (svn r10024) -Feature: [build windows] trains, road vehicles and ships can now be sorted by cargo capacity (planes already had this option) 2007-06-02 15:41:37 +00:00
maedhros 229e311cb9 (svn r10023) -Fix (r3218): When selling trains, if there were no wagons between multiheaded
engines the rear part could be checked despite having already been deleted,
triggering an assert.
2007-06-02 14:42:25 +00:00
maedhros 1e7b8190f2 (svn r10022) -Fix (r10007): Set the type of multiheaded trains before the subtype. 2007-06-02 11:15:38 +00:00
rubidium 62c20a9698 (svn r10021) -Fix (r9560): memory "corruption" that could lead to a failure to load newgrfs. 2007-06-02 09:26:03 +00:00
maedhros 8f361393dd (svn r10020) -Fix [FS#824]: GetNextVehicle() is invalid for anything that isn't a train. 2007-06-02 09:11:06 +00:00
peter1138 06084e0a63 (svn r10019) -Codechange: Implement GRM for newcargos 2007-06-02 08:56:21 +00:00
glx 6e653cd1ab (svn r10017) -Add (FS#790): more languages flags for servers 2007-06-01 23:06:01 +00:00
rubidium ecd36dd34f (svn r10015) -Fix: one could build (only) tram tracks when that was the last built roadtype (in a normal game). 2007-06-01 17:59:11 +00:00
rubidium 31ddab50ad (svn r10014) -Fix: roads became automatically one way in the scenario editor. 2007-06-01 17:58:43 +00:00
miham 7bf841ebd1 (svn r10013) -Update: WebTranslator2 update to 2007-06-01 19:05:03
american   - 7 fixed by WhiteRabbit (7)
catalan    - 1 fixed by arnaullv (1)
danish     - 37 fixed, 7 changed by ThomasA (44)
french     - 7 fixed, 1 changed by glx (8)
italian    - 7 fixed, 1 changed by lorenzodv (8)
korean     - 7 fixed by darkttd (7)
swedish    - 8 fixed by giddorah (8)
turkish    - 23 fixed by jnmbk (23)
ukrainian  - 1 fixed by mad (1)
2007-06-01 17:05:23 +00:00
glx 9f60f2ecbb (svn r10012) -Fix (r9999): crash when forcing road vehicles to turn 2007-06-01 16:06:23 +00:00
maedhros 0d0a8661de (svn r10011) -Fix (r10008): Set the right svn properties on articulated_vehicles.h and correct a file comment. 2007-06-01 12:26:14 +00:00
maedhros 4acf3e4c3f (svn r10009) -Codechange: Add and use Vehicle::IsPrimaryVehicle to replace individual checks depending on the vehicle type. 2007-06-01 12:03:10 +00:00
maedhros ab8503f5a5 (svn r10008) -Codechange: Move a couple of functions related to articulated vehicles to a file of their own. 2007-06-01 11:41:02 +00:00
maedhros dce1101039 (svn r10007) -Codechange: Add some asserts to IsFrontEngine and friends to ensure that only trains use them. 2007-06-01 11:17:30 +00:00
glx 2958f0c53a (svn r10006) -Fix (FS#362): allow different signal types on one tile 2007-05-31 21:21:04 +00:00
belugas 4af692558a (svn r10005) -Codechange: Merge two flags (2cc and newhouses) indicating some newgrf features have been loaded, and introduce the newindustry one. 2007-05-31 19:13:41 +00:00
rubidium 01f80cf343 (svn r10004) -Fix: trams can always intersect/have junctions on one way roads (because they only work for busses and lorries). 2007-05-31 18:12:35 +00:00
rubidium b2cd8f3631 (svn r10003) -Fix (r9999): crash when vehicle had to turn on a bridge. 2007-05-31 18:11:39 +00:00
rubidium 59c51f9fce (svn r10002) -Fix (r9999): don't try to get the disallowed directions from a road depot... 2007-05-31 16:47:32 +00:00
belugas f8da1b6e1a (svn r10001) -Codechange: Add support for removing dynamically allocated newgrf data 2007-05-31 15:40:36 +00:00
rubidium 253aa1b0b0 (svn r9999) -Feature: make it possible to disallow busses and lorries to go a specific way on straight pieces of road. 2007-05-31 15:15:00 +00:00
rubidium a02417645e (svn r9998) -Fix (r9990): possible null pointer dereferences on MorphOS. 2007-05-31 14:29:19 +00:00
miham efd2fce9a4 (svn r9997) -Update: WebTranslator2 update to 2007-05-31 16:16:13
american   - 30 fixed by WhiteRabbit (30)
french     - 1 changed by glx (1)
2007-05-31 14:16:22 +00:00
rubidium 52f612d711 (svn r9996) -Fix: be more strict when building/upgrading roads and/or road stops. 2007-05-31 07:34:40 +00:00
peter1138 a672a8f77d (svn r9995) -Fix (r9962): Don't scroll the map at the start of a new game 2007-05-31 07:21:33 +00:00
belugas 86abe1b229 (svn r9994) -Codechange: Add pointers for Industry and Industry Tiles in the grf file. 2007-05-31 03:35:11 +00:00
rubidium 8d82deffa1 (svn r9993) -Fix (r9992): smallish typos resulting in compile time errors. 2007-05-30 20:34:16 +00:00
belugas 0f6e6d9713 (svn r9992) -Codechange: Remove some hardcoded references to Industry IDs.
A few more to go
2007-05-30 20:20:58 +00:00
rubidium 2db0d81cc1 (svn r9991) -Fix: one could build road when trams were driving on the tile and vice versa. 2007-05-30 20:13:58 +00:00
rubidium b17a89c53d (svn r9990) -Fix: MorphOS and AmigaOS do not like "//" in filenames as that means the same as "/../" in means in Unix. 2007-05-30 18:24:54 +00:00
rubidium 2bfc36c1ba (svn r9989) -Fix [FS#817]: trams/road vehicles did go to the closest road stop regardless whether they could actually "drive" on there. 2007-05-30 18:22:56 +00:00
rubidium 70e6102c86 (svn r9988) -Codechange: remove the last direct map accesses, except the ones needed for the savegame saving/loading mechanisms. 2007-05-30 13:33:19 +00:00
rubidium bc41dc4966 (svn r9987) -Fix [FS#818]: a train under a bridge could collide with a train on the bridge. 2007-05-30 13:27:56 +00:00
rubidium a31e944149 (svn r9986) -Fix (r9934): flooding towns could not remove tram tracks (boekabart). 2007-05-30 13:16:45 +00:00
miham 6252272e87 (svn r9985) -Update: WebTranslator2 update to 2007-05-30 09:59:31
dutch      - 1 fixed by habell (1)
italian    - 16 fixed, 22 changed by lorenzodv (38)
korean     - 1 fixed by darkttd (1)
norwegian_bokmal - 8 fixed by jankmi (8)
ukrainian  - 30 fixed by mad (30)
2007-05-30 07:59:43 +00:00
belugas 425ea50854 (svn r9984) -Codechange: Remove an obsolete structure and a now meaningless enum, in favor of the "real thing" 2007-05-30 02:08:18 +00:00
belugas f8491407d0 (svn r9983) -Codechange: Use the "enabled" property of the industry spec. 2007-05-30 01:55:11 +00:00
bjarni 7d3d73e104 (svn r9982) -Fix (r9874): autoreplacing vehicles from a group could sometimes add the new vehicle twice to the engine (EngineID, not total count) count in the group 2007-05-29 20:52:35 +00:00
bjarni eb5b4ecd4a (svn r9981) -Fix: fixed a rare event that could cause autoreplace to run out of money and generate an error (spotted by elmex and UndernotBuilder)
This happened if the new engine was a dualheaded engine and there was money to replace and refit the front, but not the rear
  It also adds the cost of refitting the rear end of dualheaded engines to the cost animations (display only)
2007-05-29 20:06:06 +00:00
belugas 0cb8413a8f (svn r9976) -Codechange: Declare a writable array of specs for industry and industry tiles.
It will be initialized by the original data upon game start.
Rename some enums to be more consistent too
2007-05-29 17:41:59 +00:00
belugas 0af97d4ab2 (svn r9975) -Codechange: Adjust the industry/tile spec arrays, moving the enabled member out of GRFFileProps (end of previous commit). 2007-05-29 14:44:22 +00:00
belugas 4cb32f903e (svn r9974) -Codechange: Remove the enabled member of GRFFileProps, since it'snot really grf related 2007-05-29 14:32:46 +00:00
bjarni 77f5c1e25e (svn r9973) -Cleanup: removed some code that kept both ends of a dualheaded engine in the same train (when moving wagons in a depot)
NormaliseTrainConsist() is called later in the same command and it will take care of this issue
2007-05-29 10:35:52 +00:00
rubidium 4726fdc0d0 (svn r9972) -Fix (r9969): silence a warning. 2007-05-29 08:20:38 +00:00
rubidium 17b6ce80c7 (svn r9971) -Fix (r9892, r9958): loading of post-'bridges over "everything"' messed with the railtype of bridges. 2007-05-29 08:19:37 +00:00
miham 191845f736 (svn r9970) -Update: WebTranslator2 update to 2007-05-29 09:12:20
brazilian_portuguese - 29 fixed by tucalipe (29)
catalan    - 30 fixed by arnaullv (30)
danish     - 1 fixed by ThomasA (1)
dutch      - 29 fixed, 2 changed by webfreakz (31)
french     - 30 fixed, 2 changed by glx (32)
hungarian  - 29 fixed by miham (29)
italian    - 30 fixed, 1 changed by lorenzodv (31)
japanese   - 18 fixed by ickoonite (18)
korean     - 34 fixed by darkttd (34)
portuguese - 5 fixed by izhirahider (5)
romanian   - 28 fixed, 682 changed by CrystyB (710)
swedish    - 31 fixed by giddorah (31)
traditional_chinese - 57 fixed by thomasau (57)
2007-05-29 07:12:49 +00:00
belugas 35ccad33dd (svn r9969) -Codechange: Cleanup of industries (Step-14). Remove hardcoded-run-time tile acceptance and put in corresponding tile 2007-05-29 00:15:34 +00:00
bjarni a6bea527a3 (svn r9967) -Fix (r9938): autoreplace would in certain conditions move dualheaded engines in a train (usually to the rear)
-Change: moving an engine in between the two ends of a dualheaded engine will now move the rear dualheaded engine to the front of the newly added engine (instead of moving the new engine to the rear of the rear dualheaded engine)
   This can make a difference if there are wagons in the train
2007-05-28 21:40:40 +00:00
rubidium df1bbe55e2 (svn r9966) -Fix: bridges and tunnels were not always removed on bankruptcy, thus leaving tunnels/bridges with an invalid owner that would crash the game when clicking with the query tool on them. 2007-05-28 21:32:26 +00:00
rubidium c5d073a84f (svn r9965) -Fix: the ownership of drive through road stops on town owned roads wasn't properly reset when the road stop was removed. 2007-05-28 20:46:59 +00:00
rubidium 66c23060e2 (svn r9964) -Fix: removing of road should not be free of charge. 2007-05-28 19:26:32 +00:00
peter1138 63f7965920 (svn r9963) -Fix (r9962): 'smooth_scroll' patch setting was ignored (always on) in some places. 2007-05-28 17:07:19 +00:00
peter1138 344e9007fe (svn r9962) -Feature: Add smooth viewport scrolling. This must be enabled with patch setting 'smooth_scroll' 2007-05-28 16:46:16 +00:00
rubidium 1a8a44165b (svn r9961) -Fix (r7182): some file were still in iso8859-15 instead of utf8. 2007-05-28 04:15:32 +00:00
rubidium 2347c45d35 (svn r9960) -Fix [FS#813]: road wasn't properly added when overbuilding a tram rails with normal rails to for a crossing. 2007-05-28 03:41:18 +00:00
maedhros 710cc5a597 (svn r9959) -Fix: Only call GetNextVehicle for trains. 2007-05-27 17:27:07 +00:00
rubidium 7f0339748f (svn r9958) -Fix (r9892): upgrading old savegames made (road)bridges unuseable. 2007-05-27 14:42:40 +00:00
rubidium 2dd0ba36cb (svn r9957) -Change: replace cargo tram with freight tram for consistency. 2007-05-27 10:00:37 +00:00
peter1138 974aebcce5 (svn r9956) -Codechange: Add tram livery schemes 2007-05-27 09:33:41 +00:00
maedhros 21454957b5 (svn r9955) -Codechange: Make _roadveh_enter_depot_unk0 slightly less mysterious. 2007-05-27 09:17:30 +00:00
rubidium 53380fc047 (svn r9954) -Fix [FS#811]: trolley AI crashed when trying to determine what the roadbits are. 2007-05-27 08:53:21 +00:00
maedhros 1b33f19877 (svn r9953) -Fix: Only check whether trains are multiheaded when cloning. 2007-05-27 05:32:37 +00:00
glx 3db7a70057 (svn r9952) -Fix r9951: it was not possible to build a drive-through station over a road/tram 2007-05-27 01:59:07 +00:00
glx 8c9b4ee548 (svn r9951) -Fix: slope check was incomplete when building road over tram track (and vice-versa)
-Fix: you could build a drive-through station over a sloped road/tram track
2007-05-27 01:03:59 +00:00
rubidium 8602acc433 (svn r9950) -Feature(tte): allow terraforming under bridges. 2007-05-26 23:23:22 +00:00
rubidium c69458d894 (svn r9949) -Fix: (road) depots got deowned on bankrupts. 2007-05-26 23:18:42 +00:00
rubidium 35f1299d40 (svn r9948) -Fix (r9947): building illegal roads on slopes. Why do 'fixes' always have the tendancy to backfire? 2007-05-26 22:44:09 +00:00
rubidium 7088cedb7a (svn r9947) -Fix [FS#807]: don't check whether roadbits may be built when they are already built for another type. 2007-05-26 22:19:04 +00:00
rubidium 997901189f (svn r9946) -Fix: more places that weren't correctly marked dirty... 2007-05-26 22:01:49 +00:00
rubidium 54d7cb8f7c (svn r9945) -Fix: bridges were not properly marked dirty when adding/removing roadtypes. 2007-05-26 21:45:16 +00:00
rubidium ac4a26c705 (svn r9944) -Fix: tile selection drawn on the wrong height for some road bridges. 2007-05-26 21:34:38 +00:00
rubidium 0e07a938b7 (svn r9943) -Fix [FS#806]: building roads/trams did take notice of the foundation of the opposite roadtype. 2007-05-26 21:00:48 +00:00
rubidium 016e651ffd (svn r9942) -Fix [FS#804]: crash when upgrading both ends of a bridge. 2007-05-26 20:52:23 +00:00
bjarni c346cc430a (svn r9941) -Fix: trams could be cloned to appear in normal road depots and vice versa (spotted by Desolator) 2007-05-26 20:30:55 +00:00
rubidium e88ff7e96b (svn r9940) -Fix [FS#805]: upgrading a bridge removed roadtypes. 2007-05-26 20:30:40 +00:00
maedhros 3914f3c85c (svn r9939) -Fix (r3139): EngineHasArticPart(v) is only valid for trains. 2007-05-26 17:06:45 +00:00
bjarni fd2d6329f3 (svn r9938) -Fix [FS#799]: 100 wagons train + replace engine
Replacing a unit in a train will now remove the old unit before adding the new one. This will solve issues when max train length has been reached
2007-05-26 17:00:44 +00:00
truelight 35a1668bd4 (svn r9937) -Codechange: don't define a function that is never declared or used 2007-05-26 16:18:43 +00:00
truelight a856c160ef (svn r9936) -Fix: (Un)ScaleByZoom missed a minus sign in some cases 2007-05-26 15:20:13 +00:00
rubidium 9ca9d73eea (svn r9935) -Fix: could not build a drive through station when there when you own the tram bits and the town owns the road. 2007-05-26 14:24:19 +00:00
rubidium 04f9b1ab61 (svn r9934) -Fix (r9923): towns could remove 'half' tram tracks. 2007-05-26 13:00:52 +00:00
rubidium 1b2016a4b2 (svn r9933) -Fix (9925): unified a little too much. 2007-05-26 12:34:25 +00:00
truelight 79fe6c57cc (svn r9932) -Fix: can't assume a zoom-level with MarkAllViewportsDirty, causing segfaults when trying to load savegames in dedicated server via -g (reported by peter1138) 2007-05-26 12:19:54 +00:00
rubidium 78be11be40 (svn r9931) -Fix: some glitches with catenary and bridges. 2007-05-26 10:40:34 +00:00
rubidium 932a968af2 (svn r9930) -Fix (r9838): obiwan could cause vehicles to way a long time (2.5 years) at stations. 2007-05-26 09:13:59 +00:00
rubidium ceae5eaeba (svn r9929) -Fix [FS#803]: fix several drawing issues. 2007-05-26 07:58:49 +00:00
peter1138 0079e4952d (svn r9928) -Fix (r9805): Default display options were not set correctly. 2007-05-26 07:47:52 +00:00
rubidium afaa6062cb (svn r9927) -Fix: assert triggered when letting a tram run into the wrong side of a depot. 2007-05-25 23:45:36 +00:00