Commit Graph

98 Commits (2fc120d4d1f3454bf44116fb4b9d6a9a7f1e1575)

Author SHA1 Message Date
rubidium 4db98357ea (svn r17552) -Codechange: rename load_unload_time_rem to something more generic as it's used for more than just load/unload. Also add some documentation about where it is used. 15 years ago
frosch 64f5f1d02c (svn r17433) -Codechange: Store cumulated inflation in savegame and compute all prices from that instead of storing all prices separately.
Note: Savegame conversion computes the inflation from max loan. Prices from modified savegames will get lost. TTO savegames will also behave slightly different.
-Change: NewGRF price modifiers now take effect everytime when loading NewGRFs instead of once on gamestart.
15 years ago
smatz 7dd7f622cd (svn r17431) -Fix (r16735): oldloader wasn't updated 15 years ago
smatz d0beb1721e (svn r17429) -Fix (r16378): conversion of TTO/TTD savegames failed when vehicle 0 was a wagon 15 years ago
yexo d3b8de0162 (svn r17419) -Fix (r-old, r16378): the index of orders loaded from old savegames was owerwritten with an unitialized value, causing asserts. The issue has present for a long time but only since the new pool system did it trigger a (correct) assert 15 years ago
rubidium c1fe2ce4bc (svn r17343) -Codechange: it's bankruptcy, not bankrupcy, according to my Oxford Dictionary of English and Merriam-Webster. 15 years ago
rubidium d1b0754bbf (svn r17340) -Fix: old loader tried to load a uint8 into a uint16 15 years ago
rubidium 99d46e0ad7 (svn r17248) -Fix: add GPL license notice where appropriate 15 years ago
rubidium c096e3d54c (svn r17228) -Codechange: some coding style fixes 15 years ago
smatz d59b687f65 (svn r17124) -Codechange: store subsidies in a pool (instead of an array) 15 years ago
smatz 0502a6df42 (svn r17113) -Change [FS#265][FS#2094][FS#2589]: apply the subsidy when subsidy's destination is in station's catchment area and cargo packets originate from subsidy's source
-Change [FS#1134]: subsidies aren't bound to stations after awarding anymore, they still apply to town or industry, no matter what station is used for loading and unloading. Awarded subsidies from older savegames are lost
-Change [NoAI]: due to these changes, AISubsidy::GetSource and AISubsidy::GetDestination now return STATION_INVALID for awarded subsidies
15 years ago
smatz 738d7fde53 (svn r17107) -Codechange: store type of subsidy source and destination in the Subsidy struct instead of determining it every time it's needed 15 years ago
rubidium 58563eafa7 (svn r16947) -Codechange: use TileArea instead of train_tile, trainst_w and trainst_h. 15 years ago
rubidium 01eabc5f4c (svn r16921) -Codechange: make it more clear what strings are related to road vehicles; only ROAD isn't always enough. Also unify the way of writing it. 15 years ago
rubidium c252e18421 (svn r16917) -Codechange: fix some GCC 4.5 'case X is not in enum Y' warnings 15 years ago
smatz 93557ba4e9 (svn r16714) -Codechange: use pool-like accessors for Subsidy 15 years ago
smatz f6a4d61cca (svn r16643) -Codechange: replace GetStationByTile() by Station::GetByTile() 15 years ago
smatz 45312433b6 (svn r16632) -Codechange: rename Town::flags12 to Town::flags 15 years ago
smatz f733d75dad (svn r16631) -Fix (r1826)(r1881)(r9613): loading of some town data from old savegames was broken 15 years ago
smatz 717248b0d8 (svn r16596) -Fix (r16378): there were several hundreds of empty signs above tile 0 after loading TTO/TTD savegame 15 years ago
rubidium 11c7c258dd (svn r16586) -Codechange: don't store lifelength in the savegame; it can easily be calculated, it isn't used often and now changing extend_vehicle_life in game has some effect. 15 years ago
smatz af85994f7f (svn r16527) -Codechange: use static member functions instead of simple casts when converting Vehicle to specialised vehicle types. Includes safety check 15 years ago
glx 41b9670bc2 (svn r16446) -Fix (r16378): 'cast to pointer from integer of different size' warning 15 years ago
smatz 1eb48cdded (svn r16403) -Codechange: move code related to subsidies to separate file 15 years ago
rubidium 6350648a6c (svn r16392) -Codechange: move some variables (the ones that aren't caches) from VehicleRail to Train 15 years ago
rubidium 1324100d69 (svn r16391) -Codechange: use Train instead of Vehicle where appropriate. 15 years ago
rubidium 489253b630 (svn r16390) -Codechange: move u.road to RoadVehicle. 15 years ago
rubidium 4ae19b7451 (svn r16388) -Codechange: move u.air to Aircraft 15 years ago
rubidium d40c61749f (svn r16385) -Codechange: move u.disaster to DisasterVehicle. 15 years ago
rubidium 521c265282 (svn r16384) -Codechange: move u.effect to EffectVehicle 15 years ago
rubidium 86fc432293 (svn r16382) -Codechange: make GetVehicleTrackdir a member function of Vehicle. 15 years ago
smatz 50624d5c0f (svn r16378) -Codechange: replace OldPool with simpler Pool. Compilation time, binary size and run time (with asserts disabled) should be improved 15 years ago
smatz af57719513 (svn r16357) -Codechange: delete invalid depots in TTD savegames caused by improper SVXConverter conversions 15 years ago
smatz fe498e21e7 (svn r16353) -Fix (r1): invalid read when OTTD savegame contains VEH_INVALID 15 years ago
rubidium c0204dc186 (svn r16329) -Fix: possible desync when removing lots of towns in-game (not that we allow removing towns now, but better not have desync prone code lingering around) 15 years ago
rubidium 57a7313ea5 (svn r16328) -Fix: desync when removing lots of stations 15 years ago
smatz cf986c3099 (svn r16326) -Codechange: replace GetPoolItemPoolSize() by PoolItem::GetPoolSize() 15 years ago
smatz d495dc5dbc (svn r16325) -Codechange: replace GetPoolItem(index) by PoolItem::Get(index) 15 years ago
smatz 2168f2f4b9 (svn r15727) -Codechange: apply coding style to namegen arrays
-Fix (r1307): missing comma in _name_original_english_4
16 years ago
rubidium c3e87f345d (svn r15718) -Cleanup: apply some comment coding style on the rest of the sources too 16 years ago
rubidium f3e0fd7416 (svn r15711) -Codechange: lots of whitespace cleanup/fixes 16 years ago
rubidium 89e1afdaa0 (svn r15428) -Codechange: consistently use colour instead of having both color and colour. 16 years ago
rubidium 66cb1fe1ff (svn r15423) -Codechange: split widget related types to their own header and add a bit of type strictness. 16 years ago
smatz 9021c20b5e (svn r15299) -Cleanup: remove many redundant includes 16 years ago
smatz 7bc60a19d0 (svn r15274) -Fix (r8705): oldloader wasn't updated to use 64bit airport_flags 16 years ago
smatz 3126914f36 (svn r15223) -Codechange: move GetOldTownName to oldloader_sl.cpp as it is specific to loading of TTO/TTD savegames 16 years ago
Yexo c4cc8712af (svn r15219) -Fix (r15216): MSVC failed to find the proper casts. 16 years ago
smatz f0ff90d71c (svn r15216) -Feature: native support for Transport Tycoon (Original) savegames. Based on SVXConverter's source code and documentation by Roman Vetter 16 years ago