Commit Graph

1317 Commits (4e4b152adb9e4fed758748622c66991be2aad730)

Author SHA1 Message Date
rubidium 60d738f23a (svn r10116) -Fix [FS#850]: remove invalid characters (for the file system) from savegame names. Based on a patch by TheJosh. 18 years ago
belugas 443db4bb2e (svn r10115) -Codechange: Create accessors to triggers and random bits for industries.
Implementation will follow soon.
18 years ago
maedhros 94d390eac4 (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.
18 years ago
peter1138 8f7dea3f4f (svn r10113) -Fix (r10092): Missing svn properties and some Id/@file comments 18 years ago
peter1138 ce590b59f3 (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') 18 years ago
maedhros e5ea54fe22 (svn r10110) -Fix: Reset NewGRF errors along with all the other NewGRF data so that errors get loaded again when pressing "Apply". 18 years ago
rubidium 961a891563 (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). 18 years ago
belugas af35821a2a (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.
18 years ago
peter1138 f94300a433 (svn r10107) -Fix (r10092): Missing 'i' in 'optimized' 18 years ago
rubidium 06f9baac62 (svn r10106) -Fix (r10098): there's always a compiler complaining about something... 18 years ago
truelight 9ee02182fa (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... 18 years ago
miham 8f30750ade (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)
18 years ago
maedhros 1dac46595d (svn r10103) -Fix (r10086): TrackBitsToTrack doesn't cope well with TRACK_BIT_NONE (e.g. non-rail tiles), so use FindFirstTrack instead. 18 years ago
truelight 02b9eeaa7a (svn r10102) -Documentation: @file header was wrong 18 years ago
truelight 340d5b43f9 (svn r10101) -Codechange: the class is named 8bppSimple, so name the files like that too 18 years ago
truelight 10e826380b (svn r10100) -Fix r10093: some code now became obsolete as it never did something 18 years ago
belugas cb65217069 (svn r10099) -Fix(r9867, FS860): Use the specs of the to-be-created industry instead of the scanned industry
Spotted by Oxygene
18 years ago
rubidium 76e25154bd (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 :) 18 years ago
maedhros c186f91cbd (svn r10097) -Feature: Add support for articulated road vehicles, or callbacks 11 and 17 for
road vehicles for those who prefer the technical explanation.
18 years ago
truelight 4cd71ef4fe (svn r10096) -Fix r10092: freetype bypassed the Blitter::Encode, making fonts look weird 18 years ago
truelight 37ee35df07 (svn r10095) -Fix: avoid reading outside the buffer because of scaling problems 18 years ago
rubidium 52fa0751b2 (svn r10094) -Fix: some really broken strings got in. 18 years ago
truelight 05e2bd2793 (svn r10093) -Revert: removed 16x zoom-out as it is broken beyond repair 18 years ago
truelight 27febd474c (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
18 years ago
maedhros 41443a26a6 (svn r10089) -Fix (r10040): Use GetTileZ instead of GetClearGround in GetTerrainType as
GetTileZ is valid for any tile type. Also use GetTerrainType for stations.
18 years ago
belugas 7f8b42b598 (svn r10088) -Codechange: A typo and a code-style 18 years ago
rubidium a2b505e4ca (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. 18 years ago
maedhros c33e651393 (svn r10086) -Codechange: Use more sensible types and functions in GenericPlaceSignals. 18 years ago
rubidium 3b9aa52c45 (svn r10085) -Fix [FS#839]: message that you had given money appeared even when an error occured. 18 years ago
rubidium f73956888f (svn r10084) -Fix [FS#855]: reversing a train when loading at a station crashed. 18 years ago
rubidium b50f694a85 (svn r10082) -Fix [FS#846]: another memory leak in the networking code (benc). 18 years ago
rubidium 47d7124207 (svn r10081) -Fix [FS851]: towns/AIs didn't build bridges anymore (boekabart). 18 years ago
bjarni e1b7b7aecc (svn r10080) -Cleanup: replaced magic numbers in SubtractMoneyFromAnyPlayer() with enum values 18 years ago
miham fbcbd101c3 (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)
18 years ago
belugas a8e4af3c52 (svn r10078) -Codechange: Centralize all industry counts data and access 18 years ago
bjarni 160aa21f31 (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.
18 years ago
miham 8686e247ac (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)
18 years ago
rubidium 469e7cb991 (svn r10075) -Fix [FS#844]: small memory leak on some early returns. 18 years ago
belugas 1a2f889a52 (svn r10074) -Add: Addition of IndustryOverrideManager as well as the basic (and unfinished) support for callbacks for industries 18 years ago
rubidium 9a57a1912d (svn r10073) -Codechange: make the NewGRF paths in the config file without any full paths (again). 18 years ago
truelight 5b18dccb6b (svn r10072) -Fix r10070: typo in zoom.hpp 18 years ago
rubidium abb4ab74cf (svn r10071) -Feature [FS#828]: moving of orders (skidd13). 18 years ago
truelight e9c2c4a27e (svn r10070) -Fix: fix the rounding problem of zoom-levels in zoom.hpp, so it is global for every call 18 years ago
truelight f4c1938af9 (svn r10069) -Documentation: some documentation for TIC/TOC, as it isn't what I expected... 18 years ago
rubidium 1e1154b08c (svn r10068) -Fix [FS#835]: coverage area highlight was still show when it was turned off for docks. 18 years ago
belugas 9fe860f5f9 (svn r10066) -Codechange: Expose function GetNearbyTile by moving it to newgrf_commons.[cpp|h]. Will be used by industries in a few. 18 years ago
glx 5901239de6 (svn r10065) -Cleanup (r9850): remove now unneeded stuff 18 years ago
belugas dc89ed73ee (svn r10064) -Fix(r10063): compile again, when changing stuff. DOn't trust first run 18 years ago
belugas 256ee60545 (svn r10063) -Codechange: Change VARDEF for extern
-CodeChange: Add the count of industries, basic support for variable 67, var action02 forindustries
18 years ago
peter1138 f2e0912ce9 (svn r10062) -Codechange: Don't redraw all station tiles when cargo is added or removed if the station has no custom graphics. 18 years ago
peter1138 906385eb3d (svn r10061) -Codechange: [NewGRF] Add common cargo subtype support to vehicle var 42 18 years ago
miham 7cdb0a12f0 (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)
18 years ago
peter1138 bbfad49142 (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. 18 years ago
rubidium d255041365 (svn r10058) -Codechange: give some industry variable sensible names (like not telling "last_mo_production" when it is the production of the current month). 18 years ago
rubidium 0fcda4e45c (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. 18 years ago
miham 5d5b3968a1 (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)
18 years ago
rubidium b0421273f2 (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. 18 years ago
rubidium 740eb9d89a (svn r10053) -Fix: could not clear a level-crossing tile with tram tracks. 18 years ago
peter1138 2e9a4359f0 (svn r10052) -Codechange: Support reserve/activate stage bits of action 7/9 variable 84. 18 years ago
rubidium ddf249b2fe (svn r10049) -Codechange: get rid of the SLE_WRITEBYTE obfuscation. 18 years ago
peter1138 a0a43b4a7e (svn r10048) -Fix (r6455): Don't use override engine type for articulated wagon parts. 18 years ago
miham d99dd98cb9 (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)
18 years ago
rubidium b6a199461e (svn r10046) -Documentation: add some documentation in order_gui (skidd13). 18 years ago
peter1138 f20f1eb47b (svn r10045) -Codechange: Process Action 8 during GLS_RESERVATION to allow Action 7/Action 9s to work properly 18 years ago
peter1138 6c11a1f9b7 (svn r10044) -Fix: Minor NewGRF debug message fixes, and skip sprites of an unsupported Action 5 feature. 18 years ago
truelight 3c522a7451 (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
18 years ago
peter1138 de7e370240 (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.
18 years ago
miham 0e09964973 (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)
18 years ago
belugas 46d4d0d989 (svn r10040) -Codechange: Make the function GetTerrainType public, as other functions require it 18 years ago
bjarni 1026c865fd (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 18 years ago
peter1138 1102c157eb (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. 18 years ago
glx a81fd98057 (svn r10037) -Fix (r10035, r10036): silence some 'may be used uninitialized' warnings 18 years ago
glx 1a7c7d768f (svn r10036) -Add: sort the strings in town names dropdown 18 years ago
glx a5e5757656 (svn r10035) -Change: simplified network language string sorting 18 years ago
rubidium 0653d52288 (svn r10034) -Change: remove the string changed in r10033 from the translations, so it will be properly translated in all languages. 18 years ago
rubidium ad747e3026 (svn r10033) -Feature [FS#760]: skip to the selected order in the order list when clicking on the "skip" button while pressing CTRL. 18 years ago
glx a816369802 (svn r10032) -Add: sort the strings in server language dropdown 18 years ago
miham 65deecb2c2 (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)
18 years ago
rubidium 7d160d02ab (svn r10030) -Fix [FS#823]: one could build on (some) slopes when building on slopes was disabled. 18 years ago
rubidium 17dd40ea0f (svn r10029) -Fix (r9923): trams should not/cannot turn on roadworks. 18 years ago
peter1138 2900732931 (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. 18 years ago
bjarni 9f13fc2cf5 (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
18 years ago
bjarni 07e7a80a05 (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
18 years ago
bjarni 65ff472991 (svn r10024) -Feature: [build windows] trains, road vehicles and ships can now be sorted by cargo capacity (planes already had this option) 18 years ago
maedhros 6777662286 (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.
18 years ago
maedhros 19250f91b0 (svn r10022) -Fix (r10007): Set the type of multiheaded trains before the subtype. 18 years ago
rubidium 19d7d1c9c5 (svn r10021) -Fix (r9560): memory "corruption" that could lead to a failure to load newgrfs. 18 years ago
maedhros fb5072b824 (svn r10020) -Fix [FS#824]: GetNextVehicle() is invalid for anything that isn't a train. 18 years ago
peter1138 7660db1716 (svn r10019) -Codechange: Implement GRM for newcargos 18 years ago
glx 9113b5721a (svn r10017) -Add (FS#790): more languages flags for servers 18 years ago
rubidium 4a1b33a01f (svn r10015) -Fix: one could build (only) tram tracks when that was the last built roadtype (in a normal game). 18 years ago
rubidium 5abeb5be65 (svn r10014) -Fix: roads became automatically one way in the scenario editor. 18 years ago
miham 44c9a4dcba (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)
18 years ago
glx 435cc84f66 (svn r10012) -Fix (r9999): crash when forcing road vehicles to turn 18 years ago
maedhros 3c7273271d (svn r10011) -Fix (r10008): Set the right svn properties on articulated_vehicles.h and correct a file comment. 18 years ago
maedhros fa548f1a6f (svn r10009) -Codechange: Add and use Vehicle::IsPrimaryVehicle to replace individual checks depending on the vehicle type. 18 years ago
maedhros 2181e11c18 (svn r10008) -Codechange: Move a couple of functions related to articulated vehicles to a file of their own. 18 years ago
maedhros abdffa410d (svn r10007) -Codechange: Add some asserts to IsFrontEngine and friends to ensure that only trains use them. 18 years ago
glx 6a4be9758c (svn r10006) -Fix (FS#362): allow different signal types on one tile 18 years ago
belugas 4c243d099c (svn r10005) -Codechange: Merge two flags (2cc and newhouses) indicating some newgrf features have been loaded, and introduce the newindustry one. 18 years ago