Commit Graph

973 Commits (2dd46b964aaea976dd93aab80fd35934ed00e46a)

Author SHA1 Message Date
rubidium 2ed0f93bfb (svn r23093) -Codechange: add a default NULL for the Z of GetTileSlope and use it 13 years ago
rubidium 7757a2ed40 (svn r23091) -Codechange: rename some Get*Z functions to Get*PixelZ functions if they return the Z in pixels (like TilePixelHeight) 13 years ago
rubidium 47c5d30b5d (svn r23084) -Codechange: get rid of a redundant variable 13 years ago
yexo e98be8ed24 (svn r23083) -Fix: run StartupEngines() if NewGRFs changed during loading a savegame, just like it's running when NewGRFs are changed during a game 13 years ago
frosch bbc3409942 (svn r23080) -Feature: [NewGRF] Use variable 10 to enable vehicle GRFs to draw different sprites on the map and in various GUIs. 13 years ago
frosch 72cd855978 (svn r23074) -Codechange: Add Vehicle::GetEngine() to simplify code. 13 years ago
yexo 433f74edd9 (svn r23065) -Add: -q option to read a savegame, write some general info and exit 13 years ago
frosch 88f8457b83 (svn r23013) -Doc: Add a note about the savegame version used in the 1.1 branch. 13 years ago
frosch b78a459613 (svn r22977) -Codechange: Rename SetCachedEngineCounts() to GroupStatistics::UpdateAfterLoad(). 13 years ago
frosch 7133887ed6 (svn r22975) -Codechange: Do not store Group::num_vehicle in the savegame, but compute it like num_engines on load. 13 years ago
rubidium 73a3708a9e (svn r22958) -Fix [FS#4778]: the savegame description and loading of savegames would crash with savegames from a patched stable (which didn't bump the savegame version) 13 years ago
rubidium a6f9488ae4 (svn r22957) -Codechange: SPECSTR_PLAYERNAME is actually the company name, which is derived from the town name + ' Transport'. So make sure the last constant is in sync with the town name table 13 years ago
yexo 40d5419cd2 (svn r22920) -Cleanup: replace two very old town variables taht were rarely used by small functions that compute there value on-the-fly when necessary 13 years ago
yexo bc3b725812 (svn r22915) -Fix (r22743): TTO savegames with any aircraft not in an hangar caused crashes during load 13 years ago
rubidium a8889fd0e0 (svn r22914) -Fix [FS#4716]: old TTO/TTD savegames could get non-stop via orders upon savegame loading, even when those orders did not exist back then. This 'conversion' feature is something for TTDPatch and old OpenTTD savegames 13 years ago
frosch 275a394bc1 (svn r22880) -Cleanup: SIZE_MAX is now defined in stdafx.h 13 years ago
planetmaker ef09794faa (svn r22843) -Fix [FS#4748]: Harden savegame load against too many ai config settings (monoid) 13 years ago
rubidium b4edc30c64 (svn r22827) -Codechange: pass the/a more proper sub directory when opening (some) files instead of the default one 13 years ago
rubidium 21f194bbf2 (svn r22811) -Change: don't try to load static NewGRFs when loading the intro game for the first time 13 years ago
rubidium 0041408e4f (svn r22767) -Add: river generation 13 years ago
rubidium 81074e0ca2 (svn r22737) -Fix [FS#4717]: some corrupted savegames could crash OpenTTD instead of showing the "savegame corrupted" message 13 years ago
rubidium c8f19a608d (svn r22736) -Codechange: constify some numbers 13 years ago
michi_cc 08b7981f37 (svn r22713) -Feature: [NewGRF] Per vehicle custom cargo ageing period. 13 years ago
frosch c9e920f1eb (svn r22693) -Fix [FS#4691]: The override managers were not reset in some cases like creating a new scenario. 13 years ago
frosch 570da01d3a (svn r22644) -Codechange: Use IsShipDepotTile() instead of single water- and depottests. (adf88) 13 years ago
frosch 9c015d369e (svn r22625) -Fix (r22050)[FS#4642]: Do not zero the orders of disaster vehicles when converting savegames. 13 years ago
terkhen 729d786d5e (svn r22573) -Fix (r22567): Fix operator precedence. 13 years ago
terkhen 7ffc8c0173 (svn r22568) -Change: Add a list of persistent storages to the Town class. 13 years ago
terkhen 00e5c1df18 (svn r22567) -Codechange: Store persistent storages inside a pool. 13 years ago
terkhen 5bb79b1f46 (svn r22540) -Codechange: Rename AcceptancePickup to GoodsEntryStatus. 13 years ago
smatz 92cabe0c9f (svn r22487) -Fix (r15216)[FS#4622]: engine IDs for coal and mail wagons were swapped 13 years ago
planetmaker 43c8cd1d5e (svn r22473) -Codechange: Automatic orders are better called implicit orders as no real order influencing path finding is added 13 years ago
alberth 28092366ec (svn r22459) -Doc: Typo fixes and doxygen markup improvements. 13 years ago
rubidium 5a620d1c65 (svn r22406) -Document: some more "random-ish" tidbits 13 years ago
rubidium 75b87c554f (svn r22371) -Fix [FS#4596]: make sure saving has completely and utterly finished before starting a new one. Otherwise you could start a save, which would be marked as done by the previous save stopping and then yet another save could be started... and that could create a deadlock 14 years ago
rubidium e48967541a (svn r22198) -Codechange: make some constants name more explicit 14 years ago
smatz 8074f123d5 (svn r22155) -Codechange: one comment in saveload/station_sl.cpp was wrong 14 years ago
rubidium ae6dca77e5 (svn r22146) -Fix: don't run savegame conversion during SlNullPointers; the pointer might not be converted or be NULL at that point 14 years ago
alberth 1dbc0a20be (svn r22144) -Codechange: Unify 'while (true)' to 'for (;;)' 14 years ago
smatz 678cf3553f (svn r22130) -Fix: failed assert when loading savegame with empty shared orderlist 14 years ago
smatz 58c7f5c497 (svn r22129) -Codechange: use simpler check to test if there any towns in the game 14 years ago
rubidium b6be3f2acc (svn r22124) -Codechange: move comment to its logical place 14 years ago
rubidium 0eaa2ffa63 (svn r22122) -Fix/change: when a NOT_REACHED in saveload can be reached due to an invalid savegame, use SlErrorCorrupt instead 14 years ago
rubidium befa79ba4a (svn r22070) -Fix [FS#4503] (r21399): crashes when disconnecting after requesting the map 14 years ago
rubidium d8cada7563 (svn r22064) -Fix [FS#4497] (r21399): crash when disconnecting and reconnecting while the server is still saving the savegame 14 years ago
rubidium 7de823b1bd (svn r22062) -Fix: memory leak when saving fails mid-way 14 years ago
yexo 296af35741 (svn r22061) -Change: when loading old savegames with long trains set the maximum train length to the length of the longest train 14 years ago
rubidium b187352663 (svn r22058) -Fix (r22050): removing broken orders happened before the "front engine" conversion was done for road vehicles, so road vehicles didn't have orders anymore 14 years ago
rubidium 13fd2cd335 (svn r22057) -Fix: waypoint conversion could (previously) silently overfill the pool and crash 14 years ago
rubidium 50996e799b (svn r22050) -Fix-ish [FS#4496]: in ancient savegames, e.g. TTO savegames, non primary vehicles (wagons and such) could have unitnumbers or even orders. However, these orders would not be updated when a station is removed. As such some savegames have wagons with current orders to invalid stations which triggers trouble in the load conversion. So, trash any orders/unitnumbers a non-primary vehicle has. 14 years ago
frosch b7713a7e85 (svn r22046) -Fix [FS#4487]: Make sure order indices stay in range when copying, sharing, unsharing or deleting all orders. 14 years ago
smatz 69789f3008 (svn r22042) -Fix: when loading a TTO/TTD savegame, verify we can allocate a CargoPacket before actually trying to do so 14 years ago
smatz 887a7724dc (svn r22025) -Fix: verify there is enough space in the pool when creating new pool items while loading old savegames 14 years ago
rubidium faf5d899f7 (svn r22017) -Codechange: move MarkTileDirtyByTile to viewport_func.h 14 years ago
alberth 4364cec392 (svn r22001) -Codechange: Rename difficulty.number_industries to difficulty.industry_density. 14 years ago
frosch ef3ec0f8c8 (svn r21987) -Fix: Make news items, engine previews and AI preview events deal with no longer existing Engine items after resetting the pool. 14 years ago
terkhen a4b08dddd1 (svn r21974) -Feature: Add a setting to enable/disable funding local road reconstruction. 14 years ago
alberth 7da952115b (svn r21971) -Fix (r21969): Subversion auto-increments revision on commit. 14 years ago
alberth bdf5a1c2f7 (svn r21969) -Feature: Introduce 'minimal' number of industries as a replacment for the old 'none' setting in the newgame window. 14 years ago
rubidium 0fe0225751 (svn r21962) -Feature-ish: GUI setting to disable reversing at signals 14 years ago
rubidium c85d350310 (svn r21960) -Change: show the length of vehicles in tiles, instead of half tiles in the depot
-Fix [FS#4461]: don't count the number of vehicles but the length of vehicles to (configurably) limit train length
14 years ago
smatz 3bfad0243b (svn r21947) -Fix (r21195): crash when converting a savegame with vehicles crashed in a tunnel entry, or with vehicles reversing there 14 years ago
smatz 54161949d1 (svn r21942) -Codechange: no need to convert GOINGUP/GOINGDOWN flags if they are cleared afterwards during savegame conversion 14 years ago
planetmaker 0364726bbb (svn r21940) -Fix [FS#4460]: Not all vehicles should be tested to be inside a tunnel upon savegame load (SmatZ) 14 years ago
smatz b15719bbd2 (svn r21939) -Fix (r16357): the check for valid depot wasn't strict enough 14 years ago
frosch a97d52a29a (svn r21933) -Codechange: Split cur_order_index into cur_auto_order_index and cur_real_order_index to keep track of the current real order in an unambiguous way.
-Fix [FS#4440]: Automatic orders behave now stable wrt. service orders and are not added or removed depending on the need of servicing.
-Fix: Various other issues with automatic orders, e.g. vehicles getting stuck with "no orders" when there are automatic orders at the end of the order list.
14 years ago
rubidium 67a5cd0b18 (svn r21932) -Document: some tidbits related to vehicles 14 years ago
rubidium 4fff63d790 (svn r21912) -Codechange: let road vehicles use gcache.last_speed/SetLastSpeed as well 14 years ago
rubidium b11f1bd4ed (svn r21911) -Codechange: move tcache.last_speed to gcache.last_speed and make SetLastSpeed a function of GroundVehicle 14 years ago
rubidium 7eba2bf4d3 (svn r21890) -Cleanup: remove some unneeded includes 14 years ago
rubidium eb299736c1 (svn r21886) -Codechange: move documentation towards the code to make it more likely to be updated [n]. 14 years ago
smatz 2a2363e819 (svn r21881) -Codechange: ensure that vehicle's GOINGUP/DOWN bits are set correctly and that it has correct z_pos when converting from older savegames 14 years ago
smatz 656caf16db (svn r21875) -Codechange: indentation of some comments was wrong 14 years ago
rubidium 6a2ae92811 (svn r21865) -Fix (r21862): don't perform savegame conversion when reinitialising some vehicle structures due to NewGRF changes 14 years ago
terkhen d426906a01 (svn r21862) -Codechange: Unify subtype handling between road vehicles and trains. 14 years ago
terkhen b5468e7a80 (svn r21860) -Codechange: Rename road vehicle subtype functions to match the train names. 14 years ago
rubidium 9ca4b629cd (svn r21846) -Codechange: move documentation towards the code to make it more likely to be updated [o-s]. 14 years ago
rubidium 6a17bf91e3 (svn r21833) -Fix [FS#4427]: desync debug savegames might not be actually saved in case threading is enabled, which is enabled by default 14 years ago
terkhen 679cd3c21b (svn r21803) -Cleanup: Remove unnecessary semicolons. 14 years ago
smatz 2709454040 (svn r21802) -Cleanup (r2600): remove unused _vehicle_id_ctr_day 14 years ago
smatz 1b3e2309df (svn r21799) -Fix: further variables need to be reset when we loaded a TTDPatch savegame in the past 14 years ago
smatz 804542b3f3 (svn r21798) -Fix: loading a TTO savegame failed after loading a TTDP savegame with vehicle multiplier bigger than 1 14 years ago
rubidium 080a941eda (svn r21796) -Fix [FS#4398]: drive through road stop state wasn't properly converted from TTDPatch savegames 14 years ago
rubidium 85255ea001 (svn r21795) -Fix (r21790): when converting TTDPatch train waypoints, convert the data on the map as well 14 years ago
smatz 75351f4043 (svn r21794) -Fix (r21790): convert train orders too (Rubidium) 14 years ago
smatz 110e25e859 (svn r21793) -Fix (r20446): broken usage of GetTileOwner() caused wrong conversion of old savegames 14 years ago
smatz c58a910c8e (svn r21790) -Fix [FS#4398]: TTDPatch savegames can have train waypoints encoded as buoys 14 years ago
smatz c53c869556 (svn r21786) -Fix [FS#4398]: don't trust rail station width and height data stored by TTDPatch, it is invalid for stations wider or higher than 7 14 years ago
smatz ff469ab352 (svn r21784) -Fix (r16909): crash when converting savegame with custom waypoint name 14 years ago
rubidium 4cc2d71d6d (svn r21731) -Fix (r21728): don't forget to update the saveload version, or to check for MSVC warnings 14 years ago
rubidium eab47d2227 (svn r21728) -Fix/Feature [FS#4331]: (configurably) limit amount of tiles that can be cleared/terraformed by a company 14 years ago
terkhen 2103f7e91a (svn r21718) -Feature: Show a list of companies in the owner legend. 14 years ago
peter1138 1b61d234a1 (svn r21710) -Fix (r8128): Update oldloader for change in vehicle cur_image size. 14 years ago
peter1138 3408814169 (svn r21709) -Fix (r8128): Vehicle sprite was cached into a 16 bit variable, causing incorrect sprites to be displayed. 14 years ago
smatz e7971c2971 (svn r21657) -Cleanup (r17107): remove superfluous semicolon 14 years ago
terkhen 48b7916458 (svn r21521) -Codechange: Unify some cached values that were present in both road vehicles and trains. 14 years ago
terkhen 79e2b3153d (svn r21516) -Codechange: Add IsGroundVehicle function to the Vehicle class. 14 years ago
rubidium 49a77e89c4 (svn r21504) -Codechange: move the "lost" bit from the train's flags to vehicle flags 14 years ago
rubidium cd6180a46d (svn r21453) -Codechange: add the view of an object to the savegame 14 years ago
rubidium df410fd7ed (svn r21426) -Change: introduce a setting for the types of commands that are allowed to be executed while paused 14 years ago
rubidium 085c693289 (svn r21395) -Codechange: move the save and load filter's interface to a header 14 years ago
rubidium 5ff58155d1 (svn r21394) -Codechange: split the actual savegame loading from SaveOrLoad as well 14 years ago
rubidium da76d2f46f (svn r21393) -Codechange: support resetting of the "base" filters, i.e. reset their read location to be begin of the file. This is needed for trying to load savegames as a "buggy format" 14 years ago
rubidium e5b456f289 (svn r21382) -Fix (r21153) [FS#4290]: the road vehicle's frame wasn't properly set upon savegame conversion *if* the vehicle would be hidden, but isn't going to be hidden anymore after the conversion 14 years ago
rubidium a0fb4c8a13 (svn r21381) -Fix (r21377,r21375): some compilers have to spoil the fun... 14 years ago
rubidium b7d2d79581 (svn r21380) -Codechange: move ThreadedSave variables to a more logical place, and move an include to the right place 14 years ago
rubidium bf7da9b3a8 (svn r21379) -Codechange: move the actual save code into a separate function 14 years ago
rubidium a7b9297d20 (svn r21378) -Codechange: move the logic for reading bytes from a savegame into a class 14 years ago
rubidium 1d8d046823 (svn r21377) -Codechange: rewrite the savegame decompressors to behave more like filters 14 years ago
rubidium d1db18757d (svn r21376) -Codechange: generalise ClearMemoryDumper 14 years ago
rubidium 8d81e17acc (svn r21375) -Codechange: rewrite the savegame compressors to behave more like filters 14 years ago
rubidium b250888aa3 (svn r21373) -Codechange: rewrite the game state to memory dumper 14 years ago
rubidium d81cee085b (svn r21371) -Codechange: pass the buffer to the compressor directly instead of using a global variable 14 years ago
rubidium 33e3d7f6a2 (svn r21299) -Fix (r21263): a road vehicle in a depot or wormhole could get into an incorrect state upon savegame conversion causing it to break up later in the game 14 years ago
alberth 3e27739287 (svn r21284) -Codechange: Rename CheckSavegameVersion() to IsSavegameVersionBefore(). 14 years ago
alberth 5f8afaadb7 (svn r21283) -Codechange: Allow minor argument IsSavegameVersionBefore() to be optional. 14 years ago
alberth edef25d30c (svn r21282) -Codechange: Rename CheckSavegameVersionOldStyle() to IsSavegameVersionBefore(). 14 years ago
alberth 2974141641 (svn r21281) -Doc: Add doxygen comments to saveload code. 14 years ago
alberth 3b0ee65571 (svn r21270) -Doc: Doxyment updates and additions. Removal of doxyment in code. 14 years ago
alberth 9d899b3758 (svn r21267) -Doc: Typo fixes. 14 years ago
rubidium 097880c5e2 (svn r21263) -Fix [FS#3935]: under some circumstances two vehicles could leave a non-drive through road stop at once 14 years ago
rubidium d572100585 (svn r21195) -Fix [FS#4230] (r21135): in some corner cases the savegame conversion didn't do the right thing 14 years ago
alberth f22fb0d53d (svn r21171) -Change: Reset industry build data at game start or load. 14 years ago
alberth 4d419b9f3e (svn r21170) -Codechange: Store industry management data in the save game (some of it is used in the very near future). 14 years ago
rubidium 395335c197 (svn r21153) -Change: unify the moment trains/road vehicles become (un)visible when entering/leaving a tunnel. As a side effect some tunnel related glitches are gone. 14 years ago
terkhen 6a38925ca3 (svn r21123) -Codechange: Remove max_speed from the Vehicle class. 14 years ago
terkhen 25d1b2f54b (svn r21098) -Codechange: Ships now store their max speed in the cache instead of recalculating it every time. 14 years ago
rubidium 7148a8e21f (svn r21074) -Fix [FS#4194]: Crash when loading a corrupted 0.7.x (or before) savegame where the waypoint refered to an already removed town 14 years ago
rubidium adde677c0a (svn r21073) -Fix: spelling errors in comments 14 years ago
rubidium 59519edd34 (svn r21044) -Feature: XZ/LZMA2 savegame support. New default reduces savegame size by 10 to 30% with slightly more CPU usage. With maximum settings it reduces savegame size by 20 to 30%, but that takes 7 to 14 times longer. Map saving + downloading takes, on average, 5% less. 14 years ago
frosch 3866ecad38 (svn r20918) -Add: Store NewGRF version information from Action14 in savegame. (planetmaker) 14 years ago
smatz 77fe95f552 (svn r20860) -Cleanup: remove some unused functions and variables 14 years ago
rubidium b4f6201e94 (svn r20857) -Fix [FS#3637]: The station with the second highest rating was doubly penalised when distributing cargo. Now the penalty is completely removed and the granularity/precision of the distribution in increased by using fractional cargo. This should make competing stations less "all-or-nothing". 14 years ago
terkhen e90930e572 (svn r20832) -Feature: Allow to select a custom percentage of water in the map generation window (based on patch by CommanderZ). 14 years ago
rubidium 97dbb1f27d (svn r20819) -Fix [FS#3714]: be a bit more "lenient" w.r.t. invalid savegames; don't crash on saveload related NOT_REACHEDs, just show the user an error that the savegame is corrupted 14 years ago
rubidium 5b733f88a8 (svn r20818) -Fix [FS#3791]: make the crash-on-saveload message clearer and more correct 14 years ago
rubidium af18c30f30 (svn r20816) -Codechange [FS#3835]: make waypoint default names work like depots, stations and vehicles (Krille) 14 years ago
rubidium b01c63cd23 (svn r20815) -Revert (r20814): wrong patch at wrong time... 14 years ago
rubidium 9a0a753d96 (svn r20814) -Codechange [FS#3835]: make waypoint default names work like depots, stations and vehicles (Krille) 14 years ago
yexo 7b0fd807fb (svn r20717) -Fix [FS#4103]: water class was not set for stations 14 years ago
rubidium dd2c38ea82 (svn r20708) -Fix [FS#4101]: upon company bankruptcy some objects weren't removed properly 14 years ago
rubidium 8fd9728e19 (svn r20659) -Feature: make the (flat) area around an industry configurable (Eddi|zuHause) 14 years ago
rubidium e0ba6550d2 (svn r20658) -Codechange: add the colour of an object to the object instance 14 years ago
rubidium bd48893478 (svn r20656) -Codechange: implement counting of objects 14 years ago
rubidium 1ec1f1ef37 (svn r20648) -Codechange: implement the NewGRF override manager for objects 14 years ago
rubidium 8522984840 (svn r20634) -Fix (r20592): gracefully do the date_fract format conversion when an older OpenTTD savegame which loaded an ancient savegame still has the old date_fract "format". 14 years ago
rubidium 30f2afac9b (svn r20632) -Cleanup: remove "a few" unneeded includes, and add them to some headers 14 years ago
rubidium 4efa2efdbb (svn r20622) -Codechange: unify [GS]et[Statation|Object|Industry|House]AnimationFrame 14 years ago
rubidium 7f86dcca90 (svn r20621) -Codechange: move animation frames of houses, objects and industries to m7 (same as airports and stations) 14 years ago
frosch 9390bddbbd (svn r20610) -Fix (r20609): X and Y got swapped. 14 years ago
yexo 3b04f510b1 (svn r20609) -Fix [FS#3702]: crash when a NewGRF defined an invalid substitute type for a house and the NewGRF was removed during the game 14 years ago
rubidium 29e02728e1 (svn r20592) -Fix (r2041): no (proper) savegame conversion was done when _date_fract got a new value range 14 years ago
rubidium 56a263070f (svn r20591) -Codechange: make sure _date_fract is set when SetDate is called. Some places wouldn't reset _date_fract correctly at all 14 years ago
rubidium 926594b599 (svn r20547) -Change: the way order backups are performed. Now restoring an order doesn't require up to 765 commands. 14 years ago
yexo afb60ec59c (svn r20528) -Fix: in old savegames aircraft can have an invalid state 14 years ago
rubidium 89b2b9370a (svn r20482) -Codechange: move some object related information off the map and unify the relation objects have to towns 14 years ago
rubidium cfde445ec9 (svn r20450) -Fix: same the airport tile ID mapping as well 14 years ago
rubidium d6004d17d4 (svn r20449) -Codechange: unduplicate saving/loading of NewGRF ID + local id -> OpenTTD spec mappings 14 years ago
rubidium ab5b0ceff2 (svn r20446) -Codechange: unify the location of the water class 14 years ago
rubidium 3da3d131c6 (svn r20411) -Codechange: rename unmovables as quite a lot of them are actually movable; e.g. HQ and owned land are pretty movable. 14 years ago
rubidium edbadde301 (svn r20406) -Codechange: make StationClass use the new generic class 14 years ago
rubidium b6a0806948 (svn r20400) -Codechange: let StationSpec use GRFFilePropsBase 14 years ago
yexo a3a24f4c68 (svn r20376) -Feature [FS#3093]: add setting for none/original/more smoke (SirkoZ) 14 years ago
yexo f8b7163b34 (svn r20375) -Codechange: make sure the watertype for existing airport tiles is set to invalid 14 years ago
yexo 2e6713ce95 (svn r20374) -Codechange: add persistant storage for airports 14 years ago
yexo d2f9b87ccd (svn r20366) -Codechange: store the rotation of the airport layout in the station struct and use it to rotate hangar tiles 14 years ago
yexo 330c2f979e (svn r20365) -Codechange: allow multiple layouts for one airport statemachine, store the layout number 14 years ago
rubidium 3bfe26c69d (svn r20337) -Codechange: unify the construction of objects on the map 14 years ago
rubidium ffedcc6533 (svn r20335) -Codechange: change the name of some unmovable map accessors 14 years ago
rubidium f44c51577b (svn r20334) -Codechange: reorder the unmovable bits a bit for futher extension 14 years ago
yexo dff871b40d (svn r20311) -Codechange: don't reserve extra space in the savegame that is never used 14 years ago
terkhen 80c43f52e8 (svn r20289) -Codechange: Unify fall through coding style. 14 years ago
frosch 4bd32799f1 (svn r20286) -Codechange: Unify end of doxygen comments. 14 years ago
frosch ed4f806f1d (svn r20283) -Codechange: Unify start of doygen comments. 14 years ago
rubidium e356cb9405 (svn r20281) -Codechange: unify case scope closure + break coding style 14 years ago
alberth a825b4fa5f (svn r20266) -Doc: Mostly typo fixes, a few doxygen-related improvements. 14 years ago
rubidium e469a94a2d (svn r20253) -Codechange: change GRFConfig::windows_paletted into a bitmask/bitset 14 years ago
rubidium f7794e313f (svn r20252) -Codechange: deduplicate logic for setting a suitable (initial) palette for NewGRFs 14 years ago
rubidium 24df43633c (svn r20247) -Fix: when it is known the loading an old savegame is going to fail, bail out immediately (using an exception) instead of going on until e.g. the expected number of byte is read 14 years ago
terkhen 88ca183191 (svn r20239) -Doc: Give a common name to all fall throughs (FALL THROUGH). 14 years ago
rubidium fc6f336fee (svn r20233) -Codechange: fix/unify coding and comment style a bit 14 years ago
rubidium d72ee2bc57 (svn r20232) -Codechange: shuffle a few functions around so they don't need to be declared in advance 14 years ago
rubidium 70ff0d7513 (svn r20231) -Document: which version had which savegame version 14 years ago
alberth be6c058424 (svn r20211) -Codechange: Indented code should have curly braces around it. 14 years ago
rubidium b8487afe54 (svn r20192) -Cleanup: bye bye variables.h, bye bye VARDEF... you won't be missed :) 14 years ago
rubidium 3bb544e54d (svn r20184) -Codechange: make _trees_tick_ctr and _disaster_delay not use VARDEF and put them in a more logical location 14 years ago
rubidium 45213e5708 (svn r20183) -Codechange: make _do_autosave and _dedicated_forks not use VARDEF and put them in a more logical location 14 years ago
rubidium e809c05099 (svn r20164) -Fix [FS#3870]: inconsistencies w.r.t. to km/h vs km-ish/h as "base" unit for aircraft speeds 14 years ago
rubidium 72bfda4634 (svn r20090) -Fix: savegames would (very likely) end with 128 KiB worth of useless zeros 14 years ago
rubidium b7fe013793 (svn r20087) -Fix [FS#3876, FS#3887, FS#3920, FS#3923]: if after loading a savegame (including intro game) one tried to save a game (including autosave) and that failed (very) early on because it couldn't open the file for writing all pointers would be converted to NULLs which then causes corrupted game states 14 years ago
michi_cc a75583bbb6 (svn r20048) -Feature: Add a setting to forbid towns building level crossings. 14 years ago
alberth 604e56adc2 (svn r20025) -Doc: Fix/add comments to let Doxygen know about the documentation. 14 years ago
rubidium 52154e097c (svn r20013) -Fix [FS#3890]: silence some warnings / take the advice of the warnings into account 14 years ago
frosch e931399b31 (svn r20005) -Codechange: Enumify force_proceed. 14 years ago
yexo 9cfb61adf5 (svn r20003) -Feature [FS#3886]: [NewGRF] var 43 depot build date for railtypes 14 years ago
frosch 58f2a1d014 (svn r19985) -Fix (r19980): Loading preview data from old savegames failed indeterministically due to non-zeroed memory allocation. Thanks smatz. 14 years ago
frosch d9b4d92050 (svn r19981) -Add: Read NewGRF configuration during SL_LOAD_CHECK. 14 years ago
frosch 16618e6f16 (svn r19980) -Add: Load some general data from savegames on SL_LOAD_CHECK. 14 years ago
frosch e95518c8e9 (svn r19979) -Codechange: Separate static loadable fields from Company into separate struct. 14 years ago
frosch 86244ad31e (svn r19977) -Add: Read current date during SL_LOAD_CHECK. 14 years ago
frosch 2d8c2af5e9 (svn r19976) -Add: Read mapsize during SL_LOAD_CHECK. 14 years ago
frosch 8d9b573f8f (svn r19975) -Add: SL_LOAD_CHECK mode for partial reading of savegames. 14 years ago
frosch e8248cf113 (svn r19974) -Add: SlSkipArray() to skip arrays and sparse arrays in savegames. 14 years ago
frosch 62ac138154 (svn r19973) -Codechange: Add another procedure to chunk handlers for checking savegames (empty for now). 14 years ago
frosch 641fc68aa8 (svn r19971) -Codechange: Make IsGoodGRFConfigList() operate on any given GRFConfig and move the GameLog operations directly to AfterLoad(). 14 years ago
frosch 1d3adb2b66 (svn r19931) -Fix (r19914): Convert assertion in Backup<> destructor into DEBUG() output. It was triggered on exceptions, especially when aborting world generation. 14 years ago
frosch 9db3cde73a (svn r19914) -Codechange: Wrap a helper class around temporary assignments of _current_company to ensure proper restoration. 14 years ago
smatz 911061ac38 (svn r19850) -Codechange: move declaration of InitializeRailGUI() to rail_gui.h 14 years ago
rubidium 398418b8fa (svn r19812) -Codechange: give some unnamed enums a name or, in case they consisted of unrelated values use static const (u)int 14 years ago
smatz d568a4258b (svn r19806) -Codechange: silence one warning 14 years ago
rubidium 93ff7d78e1 (svn r19799) -Change: give depots an unique name in the same manner buoys and waypoints are named 14 years ago
frosch 5b77a63ecf (svn r19769) -Fix [FS#3820]: MV_VOID tiles shall have no tropic zone. 14 years ago
rubidium ac9af8e1e1 (svn r19738) -Fix: MSVC 64 bits compile warnings 15 years ago
terkhen 1d60eac168 (svn r19715) -Codechange: Rename all appareances of shiplift to lock. 15 years ago
rubidium a6f46657ab (svn r19638) -Change: log the _date and _date_fract in the desync log for saved games 15 years ago
rubidium 7590651aea (svn r19612) -Fix [FS#3756] (r3212): crash when opening a savegame with a waypoint from around 0.4.0 15 years ago
rubidium d8baa1342c (svn r19589) -Change: add some more useful information to the desync log and unify the formatting 15 years ago
smatz 53aaabe6e9 (svn r19507) -Codechange: remove semicolon after DECLARE_POSTFIX_INCREMENT and DECLARE_ENUM_AS_BIT_SET 15 years ago
frosch 116a5f56a4 (svn r19481) -Codechange: Turn _industry_counts into a static member of Industry. 15 years ago
yexo 2b62e467af (svn r19458) -Fix (r19457): svn add the new file 15 years ago
yexo 38f4cb6469 (svn r19457) -Codechange: introduce AirportOverrideManager to keep track of airports if a newgrf can't be found 15 years ago
yexo c4a88ce022 (svn r19455) -Codechange: split all airport information in Station to a seperate class 15 years ago
yexo 05d29d8a3d (svn r19435) -Fix: when loading a savegame created with a house newgrf without that newgrf available all houses became tall office blocks 15 years ago
yexo e3591f8a1d (svn r19429) -Fix: when the title game contains an AIPL block the AI settinsg where overwritten by those from the title game 15 years ago
Yexo dfa528d058 (svn r19395) -Fix [FS#3669]: the AI Debug window didn't open if an AI or library fails to compile when loading a savegame 15 years ago
terkhen 4eb6e3f060 (svn r19392) -Codechange: Increase the maximum size of a TileArea. 15 years ago
yexo 22081cbd19 (svn r19382) -Fix (r19381): don't break savegame version 139 15 years ago
yexo 1a28aaf69e (svn r19381) -Fix [FS#3670] (r19198): airport size wasn't properly stored in the savegame 15 years ago
yexo 0cf90dbeb0 (svn r19380) -Fix [FS#3678] (r19322): updating the id of the oilrig airport should be done earlier as it can be used by newgrf code 15 years ago
terkhen b443a3ee0a (svn r19346) -Feature: Configurable slope steepness for road vehicles from 0% to 10%, default is 7%. 15 years ago
terkhen c958c2c31f (svn r19345) -Feature: Realistic acceleration for road vehicles. 15 years ago
terkhen 06a3faa651 (svn r19343) -Codechange: Make RoadVehicle a child class of GroundVehicle.
-Add: Required acceleration functions at RoadVehicle.
15 years ago
terkhen 4e6cac84d6 (svn r19341) -Codechange: Move GOINGUP/GOINGDOWN flags to GroundVehicle.
-Codechange: Move GetSlopeResistance to GroundVehicle.
15 years ago
yexo 308781664b (svn r19322) -Codechange: change the id of the oilrig airport from 15 to 9 15 years ago
yexo 7ff55502f0 (svn r19256) -Codechange: use a constructor/destructor for GRFConfig to make sure all members are properly initialized 15 years ago
yexo a9c8dbc0a0 (svn r19255) -Codechange: encapsulate GRFIdentifier in GRFConfig instead of subclassing it 15 years ago
smatz f051066bc4 (svn r19224) -Codechange: change parameters passed to ShowErrorMessage() a bit 15 years ago
yexo 698737f485 (svn r19198) -Codechange: store the size of stations in savegames 15 years ago
rubidium 7a73a7490d (svn r19090) -Codechange: some comment coding style fixes 15 years ago
rubidium 21bd2722cd (svn r19081) -Codechange: make it possible to disable compilation of the AI+Squirrel 15 years ago
rubidium 78f31c1744 (svn r19044) -Codechange: don't load the 'new game' NewGRFs when you're certain the savegame wouldn't have been saved with them, i.e. don't load the 'new game' NewGRFs for TTO savegames. 15 years ago
rubidium 64ead0b513 (svn r19022) -Fix (r18770): loading old (0.1-ish) savegames failed 15 years ago
rubidium a126db6ea4 (svn r19021) -Fix [FS#3570]: don't NULL the pointers when saving the savegame on an error during saving; the savegame is still valid 15 years ago
smatz 54f958c8e5 (svn r18954) -Fix (r18952): missing 'inline' 15 years ago
yexo dc714960e3 (svn r18952) -Fix (r18950): loading recent (=newer then title game) savegames failed 15 years ago
yexo fae34ee719 (svn r18944) -Change [FS#3232]: use the highest version of an AI that can load the AI data from a savegame instead of the exact same version 15 years ago
yexo fa01b25f74 (svn r18942) -Feature [FS#2678]: add a setting to reduce/disable aircraft crashes 15 years ago
yexo 388c713f08 (svn r18912) -Codechange: free up a bunch of airporttile ids by using the tile animation frame 15 years ago
michi_cc a4f50de959 (svn r18904) -Fix: Writing LZO-compressed savegames would produce invalid files and potentially overwrite memory. 15 years ago
rubidium 251ffaa000 (svn r18831) -Change [FS#3537]: do not go into the crashlog handler in case loading a savegame misses with missing NewGRFs. This way the load game crash handler gets better visibility and the user is instructed to find the missing NewGRFs before filing a bug report 15 years ago
rubidium aaf0b4b46c (svn r18812) -Codechange: make some functions in train.h functions of Train. 15 years ago
rubidium 82fc28f77f (svn r18809) -Codechange/Cleanup: remove unneeded headers from some files, if a header require a header make it include that header 15 years ago
rubidium 3ebec78900 (svn r18775) -Fix (r18769): non-LZO code used LZO defines, also replace #define with static const uint and add some documentation. 15 years ago
rubidium aca2daf841 (svn r18772) -Feature-ish: allow user customisable compression levels for the zlib compression 15 years ago
rubidium 188c8ebd5c (svn r18771) -Codechange: minor cleanups in saveload code 15 years ago
rubidium f5053cee7e (svn r18770) -Fix-ish: don't allow the memory saveload format to be chosen for savegames; it's utterly useless to make a snapshot in memory and then throw that away without doing anything with it. 15 years ago
rubidium 3ca0937c1c (svn r18769) -Codechange: replace MiniLZO with the real library. If you're using MSVC update openttd-useful, otherwise make sure you've got liblzo2 and it's development files installed. 15 years ago
rubidium e4af35d316 (svn r18764) -Fix [FS#3422]: split the (un)load ticks counter and signal wait counter; sometimes they might get into eachother's way 15 years ago
rubidium f65f276d10 (svn r18763) -Feature [FS#3095]: rerandomise AIs on reloading (via the debug window) when they were randomly chosen 15 years ago
yexo b378e82676 (svn r18719) -Feature: don't delete the rough/rocky status of a tile when it's covered by snow, this allows rocky tiles under snow if you have a variable snowline 15 years ago
rubidium 87466a4ed0 (svn r18717) -Codechange: use TileArea in industry instead of three separate variables. Also make use of TileArea functions for determining the 'width' and 'height' of an industry. 15 years ago
rubidium 069b6a9fab (svn r18703) -Feature-ish: allow virtually paying a percentage of the leg profit in feeder chains. This to give the user a better chance to get a feeder system without "losses". 15 years ago
rubidium 35c79d81ef (svn r18689) -Codechange: move the looping over chunkhandlers code to a macro 15 years ago
rubidium 58be174df2 (svn r18688) -Cleanup: remove some unused code/constants 15 years ago
rubidium ea75e7da60 (svn r18686) -Fix [FS#3470]: in some cases _sl.chs is used when not initialised. As _sl.chs always refers to a single table when initialised replace _sl.chs with the actual table 15 years ago
rubidium b2e9b5d612 (svn r18683) -Fix: it's not an other 15 years ago
peter1138 739aea3e1a (svn r18674) -Feature (FS#3459): Configurable slope steepness for trains from 0% to 10%, default is 3% as before (mostly by Terkhen) 15 years ago
rubidium 69f1db204e (svn r18634) -Revert (r16808): the fix doesn't work in all cases
-Fix [FS#3421] (r16838): crash when invalid pointers are left due to saveload failing at e.g. decompressing the savegame
15 years ago
rubidium 5e2b7e0238 (svn r18522) -Feature: add the possibility to not make new tree tiles in-game 15 years ago
rubidium fbfcbe06ec (svn r18515) -Change: make it visible when you're to pass the next signal on danger and possible to cancel it
-Fix [FS#2891]: when you pass a signal at danger, in a PBS controlled area, don't try to do the 'safe' thing and stop, but continue going; the user wanted the train to pass the signal at danger so (s)he has to suffer the consequences. Ofcourse one can always stop the train manually.
15 years ago
rubidium 3e6c530e1e (svn r18506) -Fix [FS#3368]: no error message was created for the first fatal NewGRF error. 15 years ago
rubidium 0e78fdb54c (svn r18486) -Fix: when switching language and you're getting a different font, recalculate the coordinates/sizes of the viewport signs. Otherwise it gets glitchy or abbreviated (in the smallmap) 15 years ago
rubidium 472e5501fa (svn r18481) -Codechange: unify the curve pathfinder penalty defaults; 0.01 tile won't make a dent, 3 tiles might be a bit too much
-Feature-ish: make maximum pathfinder penalties for finding depots customisable, also increase it slightly to 20 tiles worth of penalties.
15 years ago
rubidium fac2f8ce1a (svn r18404) -Codechange: link drive through stops better together
-Feature: make penalty for road stop occupancy user configurable
-Fix [FS#1944]: road vehicles would not pick an empty drive through stop. Now they will *if* the penalty for driving around is less than the occupancy penalty
-Fix [FS#1495]: long (articulated) road vehicles could block loading of others when the following road vehicle already got 'permission' to go to the next bay even when it could not reach it
-Change: improve the throughput of the drive through road stops by letting them stop closer together
15 years ago
rubidium aa40d8e3ad (svn r18388) -Codechange: move entering/leaving of road stops to functions of RoadStop 15 years ago
rubidium 0ef0e13795 (svn r18385) -Cleanup: remove the now unneeded multistop slot management code 15 years ago
rubidium 429f3993f8 (svn r18384) -Fix (r18351): attempt to 'work around' MSVC's IMO stupid warning 15 years ago
rubidium 9426f2b173 (svn r18379) -Codechange: move the cache updating function to its own header to reduce the include 'pathfinder' dependencies 15 years ago
rubidium 81062163a2 (svn r18377) -Codechange: add 'cache' of the tile area of truck and bus stops. 15 years ago
rubidium f52e27c688 (svn r18364) -Codechange: move the pathfinders and their related files into a separate directory 15 years ago
rubidium 3a83eab967 (svn r18362) -Cleanup: remove OPF for RVs and NTP to clean up lots of code and simplify some things for the future 15 years ago
rubidium 5a41a646c2 (svn r18351) -Fix [FS#3333]: endianness issue with saving the zoom level 15 years ago
rubidium b00a5f1069 (svn r18330) -Cleanup: remove some unneeded includes 15 years ago
rubidium a951c505bf (svn r18292) -Codechange: add a command to set the start date of a timetable. Based on work by PhilSophus. 15 years ago
smatz f0c64208cf (svn r18281) -Feature: founding towns in-game (based on work by Belugas, TheJosh, GeekToo, Terkhen and others) 15 years ago
rubidium 36a20894aa (svn r18141) -Fix (r18051): one couldn't (easily) continue a game in single player that was 'not enough players'/'waiting on join'-paused 15 years ago
rubidium 860b9b1cea (svn r18028) -Codechange: unglobalise some functions 15 years ago
rubidium c2221885f4 (svn r18027) -Codechange: make some unneededly global variables static and remove some unused variables 15 years ago
frosch 3f5e42b04a (svn r18008) -Codechange: Rename NUM_PRICES to PR_END, and use the Price enum some more. 15 years ago
rubidium d79439fb3c (svn r17963) -Codechange: some documentation style 15 years ago
alberth 2d5aebb1f1 (svn r17929) -Fix (r2391): STR_NULL does not seem very useful as file save error summary. 15 years ago
alberth 44aacfc59f (svn r17928) -Codechange: ShowErrorMessage() now takes the summary string before the details string.
Gentlemen, swap your string parameters.
15 years ago
rubidium ee2d790b34 (svn r17908) -Fix [FS#3288]: uninitialised values in some paths of loading TTO savegames 15 years ago
rubidium 778f6533ea (svn r17893) -Feature [FS#2633]: make it possible to disable background saving, only via the config file/in game console though 15 years ago
smatz 1165817cf2 (svn r17879) -Codechange: convert awarded pax subsidies from old savegames using simple heuristic (instead of deleting them) 15 years ago
rubidium 06c55863ca (svn r17817) -Codechange: MakeWater actually made sea tiles, so rename it to MakeSea and unduplicate the code to make sea, rivers and canals. 15 years ago
rubidium 9696e3e39b (svn r17816) -Codechange: move the CargoList invalidation-after-saveload to the function that handles the CargoPackets instead of spreading it around over the saveload files. Also add some code to validate whether the caches are valid; to be removed later when no problems turn up 15 years ago
rubidium 08ac51fada (svn r17813) -Codechange: unify the CargoPacket related coding style 15 years ago
rubidium f11cebfe9b (svn r17807) -Codechange: move all 'updates' just after the 'load' constructor of CargoPackets to the constructor call itself 15 years ago
rubidium 4ad30fecde (svn r17806) -Codechange: split CargoPacket's 'afterload' to a separate function 15 years ago
rubidium 138e7233bc (svn r17800) -Codechange: first steps into making CargoList a template 15 years ago
rubidium 446363aac4 (svn r17734) -Fix (r17732): broke the assumption that 'this->packets == this', which broke loading old savegames. Now remove the (need for the) hack that needed that assumption. 15 years ago
rubidium 1e2dc25582 (svn r17727) -Codechange: some coding style and documentation fixes 15 years ago
rubidium 5f59d0c5b4 (svn r17720) -Codechange: guard the CargoPacket variables that are cached in CargoLists so they cannot be written from outside the CargoList class (based on patch by fonsinchen) 15 years ago
rubidium d6cded5380 (svn r17693) -Cleanup: remove some unneeded includes 15 years ago
rubidium afed4330da (svn r17685) -Fix: autounpausing kept trying to unpause a loaded game that was paused due to an error. Just reject such savegames in dedicated servers. 15 years ago
smatz 662ef3173b (svn r17597) -Codechange: rename namegen* to townname* 15 years ago
smatz 114d48e492 (svn r17596) -Codechange: constify some tables 15 years ago
smatz 9225b3ba03 (svn r17589) -Codechange: rename town_acc to always_accepted 15 years ago
rubidium ca91a97826 (svn r17579) -Fix: remove doxygen docs for removed parameters, or change @param to @tparam if necessary 15 years ago
rubidium e8ddf001c8 (svn r17570) -Fix: a number of Doxygen warnings about missing parameters, which were sometimes missing and sometimes just typos 15 years ago
rubidium af457fc9fe (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
rubidium 14ea4e7672 (svn r17535) -Fix: compiling without networking failed; also unhackify the crash logger a bit. 15 years ago
rubidium 55ddce8da2 (svn r17493) -Codechange: store the depot index on the map 15 years ago
rubidium bb94724a09 (svn r17492) -Codechange: don't store the town index for road depots. 15 years ago
yexo e2122dc7f0 (svn r17483) -Fix (r17405): when an aircraft starts flying in circles make it turn in the correct direction first before continuing 15 years ago
smatz 22e9d59559 (svn r17439) -Fix (r17436): you weren't paid for cargo delivered to houses and headquarters anymore 15 years ago
frosch 438a429549 (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 b903e41c65 (svn r17431) -Fix (r16735): oldloader wasn't updated 15 years ago
smatz f9257fabea (svn r17429) -Fix (r16378): conversion of TTO/TTD savegames failed when vehicle 0 was a wagon 15 years ago
yexo ae9441aa46 (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
yexo 16e3083ff7 (svn r17405) -Fix (r100): aircraft shouldn't be allowed to make turns bigger then 45 degrees while in flight 15 years ago
rubidium b1d4594fa7 (svn r17343) -Codechange: it's bankruptcy, not bankrupcy, according to my Oxford Dictionary of English and Merriam-Webster. 15 years ago
rubidium 317f34b3d2 (svn r17340) -Fix: old loader tried to load a uint8 into a uint16 15 years ago
rubidium 07d2af338e (svn r17339) -Codechange: move thread related files to their own directory (like done for video, music, sound, etc) 15 years ago
smatz ee685c8287 (svn r17316) -Codechange: use Industry::GetByTile() instead of GetIndustryByTile() 15 years ago
yexo f548a1b3b3 (svn r17298) -Fix [FS#3153]: reloading an AI started a new AI in the first available company slot causing other AIs to be started 15 years ago
rubidium 31a6ce5643 (svn r17267) -Change [FS#3139]: mention the MD5 checksum of the original NewGRF in the "saveload failed horribly"-error message and make it more clear that the filename is of the current NewGRF 15 years ago
rubidium 7fbc33dae1 (svn r17248) -Fix: add GPL license notice where appropriate 15 years ago
rubidium 7fb95e2c2b (svn r17228) -Codechange: some coding style fixes 15 years ago
rubidium d4adee0b1d (svn r17216) -Update: MiniLZO from 1.08 to 2.03. 15 years ago
yexo a8773bba2d (svn r17215) -Cleanup: remove unused return value 15 years ago
rubidium 82105604c3 (svn r17212) -Change: move minilzo to its 'own' 3rdparty directory as it belongs there 15 years ago
rubidium 35d5a197d6 (svn r17138) -Fix: some MSVC 64 bits compiler warnings 15 years ago
smatz 13e23141b4 (svn r17124) -Codechange: store subsidies in a pool (instead of an array) 15 years ago
smatz 046be0a199 (svn r17119) -Codechange: replace constants in subsidy.cpp by enum values 15 years ago
smatz 2a430d981f (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 74d3382b94 (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 ba4fd897b8 (svn r17097) -Fix [FS#3092] (r13256): make restart command work again and make the help show how it works and how it doesn't work 15 years ago
rubidium 1fe3ad3288 (svn r17075) -Codechange: rename ~750 strings to be more uniform with their relatives 15 years ago
smatz 29287ce104 (svn r17069) -Fix (r17004): invalid read when converting old waypoints 15 years ago
rubidium 0bb3d7030f (svn r17004) -Fix (r16909): StationRect of loading buoys/waypoints wasn't correctly set when loading 'old' games. 15 years ago
rubidium 5592eb4955 (svn r16993) -Change: make the rail waypoint builder draggable 15 years ago
rubidium 959a5e690b (svn r16988) -Codechange: unify the code for removing (parts of) stations and waypoints 15 years ago
rubidium 2dd998ab06 (svn r16962) -Codechange: more work towards multi tile waypoints 15 years ago
rubidium 7440ec7a73 (svn r16947) -Codechange: use TileArea instead of train_tile, trainst_w and trainst_h. 15 years ago
rubidium 7a24fba918 (svn r16944) -Codechange: remove needlessly complex way of getting the offset of items within a struct that are within a struct 15 years ago
rubidium cf38a5bee6 (svn r16939) -Codechange: s/RailwayStation/RailStation/ to unify the way it's written. 15 years ago
rubidium 2c6b5237f6 (svn r16938) -Codechange: introduce helper function to tell whether a tile is either a rail station or rail waypoint tile 15 years ago
rubidium 9980af2898 (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 3bcfa7c52a (svn r16917) -Codechange: fix some GCC 4.5 'case X is not in enum Y' warnings 15 years ago
smatz 13a7c550ad (svn r16916) -Fix (r16909): station acceptance was reset after game load 15 years ago
rubidium cb0409fe52 (svn r16912) -Codechange: split waypoint.h in waypoint_base.h and waypoint_func.h 15 years ago
rubidium 68ead6b84f (svn r16909) -Fix [FS#2996]: NewGRF stations would be triggering assertions all over the place when using the more advanced station types.
-Change: make (rail) waypoints sub classes of 'base stations', make buoys waypoints and unify code between them where possible.
15 years ago
rubidium 2646a99d29 (svn r16908) -Codechange: s/DepotWaypointReservation/DepotReservation/ 15 years ago
rubidium 0658d6cb3d (svn r16900) -Codechange: prepare the waypoint window for buoys 15 years ago
rubidium ed5ced71c8 (svn r16897) -Codechange: use the 'generic' station spec to station allocation for waypoints too 15 years ago
smatz af13707e00 (svn r16877) -Codechange: use Subsidy::IsAwarded() instead of testing subsidy's age 15 years ago
rubidium 8c17c6cb2b (svn r16868) -Codechange: unify UpdateAll[Station|Waypoint]VirtCoords 15 years ago
rubidium c9cab7ba19 (svn r16862) -Codechange: make waypoints use the same system of station station spec lists. 15 years ago
rubidium 06ea681b5f (svn r16860) -Codechange: introduce a helper to assign a station spec to Waypoints 15 years ago
smatz 57d3d4ce5e (svn r16857) -Fix [FS#3036](r16652): crash when train partially in depot crashed 15 years ago
rubidium 9933df9d89 (svn r16855) -Codechange: remove unused 'conversion' stuff from the waypoint struct and make it more similar to Station. 15 years ago
rubidium a007d609af (svn r16854) -Fix (r2046): savegames from before this version would get the town id as their 'index' (#<num). For stations with custom names that custom name would be dropped and the lowest 6 bits of the StringID would be used for the 'index'. In other words, it resulted in a mess. 15 years ago
rubidium 665fa7f9c1 (svn r16851) -Codechange: use StationSpecList in waypoint too 15 years ago
rubidium dea1144bcb (svn r16850) -Codechange: unify some naming of variables between waypoints and stations. 15 years ago
smatz 1f29e38b83 (svn r16849) -Codechange: replace GetCargo() by CargoSpec::Get() 15 years ago
rubidium fd589b90e8 (svn r16841) -Cleanup: spaces/tabs where they don't belong 15 years ago
rubidium e067d4a4b8 (svn r16821) -Codechange: unify the naming of type::UpdateVirtCoord and UpdateAll[Type]VirtCoords. 15 years ago
smatz b6960e4e17 (svn r16814) -Codechange: make IsNormalAircraft() member of Aircraft 15 years ago
smatz 95c7993451 (svn r16809) -Fix [FS#3021](r13096): automatic resizing of SelectCompanyLiveryWindow wasn't working as expected 15 years ago
smatz aa7bcb1259 (svn r16808) -Fix (r16338): don't crash when loading savegame with invalid references 15 years ago
rubidium 3b8d0621a2 (svn r16785) -Codechange: make ships going to buoys use OT_GOTO_WAYPOINT too 15 years ago
rubidium 65f77a7bee (svn r16735) -Codechange: had_vehicle_of_type only stored 7 bits, all less that bit 7... but it was a word wasting space etc. 15 years ago
smatz 6a0855f0d1 (svn r16723) -Codechange: make GetNextArticPart(), GetLastEnginePart(), GetNextVehicle(), GetPrevVehicle(), GetNextUnit(), GetPrevUnit() members of Train 15 years ago
rubidium 4d14c1b534 (svn r16722) -Codechange: unify the naming of the Is/Set/HasArticulatedPart functions 15 years ago
rubidium 61e735ba4c (svn r16721) -Codechange: make Is/SetRoadVehicleFront, Is/Set/HasArticulatedPart member of RoadVehicle. 15 years ago
smatz 77eaefb61c (svn r16720) -Codechange: make Set/ClearFrontEngine(), Set/ClearArticulatedPart(), Set/ClearWagon(), Set/ClearEngine(), Set/ClearFreeWagon() and Set/ClearMultiheaded() members of Train 15 years ago
smatz d86e17d65a (svn r16719) -Codechange: make IsArticulatedPart(), IsTrainEngine(), IsTrainWagon(), IsMultiheaded(), EngineHasArticPart() and IsRearDualheaded() members of Train 15 years ago
smatz ecfaa0564d (svn r16718) -Codechange: make IsFreeWagon() member of Train 15 years ago
smatz adc5363202 (svn r16717) -Codechange: make IsFrontEngine() member of Train 15 years ago
smatz 93c5300fc5 (svn r16715) -Codechange: add attribute to assert_compile(), so it doesn't warn when used inside function 15 years ago
smatz 76a50ce94d (svn r16714) -Codechange: use pool-like accessors for Subsidy 15 years ago
smatz f4d0d94184 (svn r16711) -Codechange: use FOR_ALL_SUBSIDIES macro when iterating over all subsidies 15 years ago
smatz 023f78b5ff (svn r16710) -Fix: invalidate subsidies with invalid source or destination when converting older savegames 15 years ago
rubidium 927c4a0fe8 (svn r16709) -Fix [FS#2994]: the list of animated tiles could have duplicates (only for old savegames) and tiles that weren't animated 15 years ago
rubidium 985608c713 (svn r16694) -Fix [FS#2995] (rgradual loading, rnewindustries): only pay for whatever has been actually unloaded and perform the payment when unloading has finished. This fixes, amongst others:
* cheating by starting to unload and after getting paid rushing to the depot to get sold (or unloading, loading and getting paid again for the remainder)
 * cargo being dropped onto a station at the moment a stockpiling industry doesn't accept it anymore
 * industries getting cargo that has not been unloaded yet and subsequently dumping it back on the station in one go
Note: you will now get paid after the unloading has finished, so you'll have to wait a bit longer for 'your' money.
15 years ago
smatz b668c24d46 (svn r16666) -Codechange: replace GetHouseSpecs() by HouseSpec::Get(), hide _house_specs[] 15 years ago
smatz af78d6a9bb (svn r16665) -Codechange: replace GetTownByTile() by Town::GetByTile() 15 years ago
smatz e6a165881c (svn r16664) -Codechange: move house-related stuff from town.h and town_type.h to separate files 15 years ago
smatz fa1ad0fd3c (svn r16654) -Codechange: cache industries in station's coverage area instead of searching them everytime payment is made 15 years ago
yexo d45b27c46b (svn r16651) -Fix: When there is no AI version that can load data from the savegame, load the latest version of the same AI instead of a random AI. 15 years ago
smatz 8343340acb (svn r16643) -Codechange: replace GetStationByTile() by Station::GetByTile() 15 years ago
smatz 0045096403 (svn r16640) -Codechange: move roadstop stuff to separate files 15 years ago
smatz a50ba1b8c1 (svn r16632) -Codechange: rename Town::flags12 to Town::flags 15 years ago
smatz 5ef0745254 (svn r16631) -Fix (r1826)(r1881)(r9613): loading of some town data from old savegames was broken 15 years ago
smatz 0961668e14 (svn r16596) -Fix (r16378): there were several hundreds of empty signs above tile 0 after loading TTO/TTD savegame 15 years ago
rubidium 35aabc1d4c (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
rubidium 2a7b07137a (svn r16572) -Codechange: also catch FPEs in saveload and the warning about missing NewGRFs; only happens when assertions are disabled and NewGRFs are missing. 15 years ago
smatz bea3fe2b8b (svn r16559) -Codechange: introduce Company::IsValidAiID() and Company::IsValidHumanID(), don't use IsHumanCompany() where possible 15 years ago
smatz 5a6bb53894 (svn r16553) -Codechange: don't use TRACK_BIT_WORMHOLE and TRACK_BIT_DEPOT as bitmasks 15 years ago
smatz 0c10006907 (svn r16527) -Codechange: use static member functions instead of simple casts when converting Vehicle to specialised vehicle types. Includes safety check 15 years ago
frosch 5b497d6b49 (svn r16525) -Codechange: Notify small ufos on deletion of road vehicles, so they can head for somewhere else instead of stumbling over a ghost. 15 years ago
alberth bab70a823d (svn r16491) -Codechange: Added parentheses around bitwise operators for code style. 15 years ago
glx 5991c5195c (svn r16446) -Fix (r16378): 'cast to pointer from integer of different size' warning 15 years ago
smatz 5a463c8347 (svn r16442) -Codechange: use new Vehicle accessors at more places 15 years ago
smatz 7ee882d03f (svn r16441) -Codechange: new class SpecializedVehicle used as superclass for all vehicle types 15 years ago
yexo 0d56cfabfa (svn r16439) -Change: Make the default vehicle servicing settings company-based settings, so in a multiplayer game everyone can change them. 15 years ago
rubidium e3c5bc8d2e (svn r16434) -Cleanup: remove some dead code; primarily stuff that can't be reached like break after returns or break after functions that never return (i.e. NOT_REACHED) 15 years ago
smatz 7854e68b95 (svn r16407) -Fix [FS#2913]: set CargoPacket::source to INVALID_STATION when source station is deleted 15 years ago
smatz b2aed51f8e (svn r16403) -Codechange: move code related to subsidies to separate file 15 years ago
rubidium 6237fe1462 (svn r16394) -Codechange: move (NewGRF) cache variables into a separate struct so (some vehicle related) NewGRF cache 'desyncs' can be tested easier. 15 years ago
rubidium da5661a0c8 (svn r16393) -Codechange: move VehicleRail to Train. 15 years ago
rubidium c4b627af42 (svn r16392) -Codechange: move some variables (the ones that aren't caches) from VehicleRail to Train 15 years ago
rubidium 80e94b9bb1 (svn r16391) -Codechange: use Train instead of Vehicle where appropriate. 15 years ago
rubidium 7a37220881 (svn r16390) -Codechange: move u.road to RoadVehicle. 15 years ago
rubidium d37b840cf3 (svn r16389) -Codechange: use RoadVehicle instead of Vehicle where appropriate 15 years ago
rubidium c882248348 (svn r16388) -Codechange: move u.air to Aircraft 15 years ago
rubidium ada3067960 (svn r16387) -Codechange: use Aircraft instead of Vehicle where appropriate 15 years ago
rubidium 74ea34ca66 (svn r16385) -Codechange: move u.disaster to DisasterVehicle. 15 years ago
rubidium 6d1c974254 (svn r16384) -Codechange: move u.effect to EffectVehicle 15 years ago
rubidium 441011b782 (svn r16382) -Codechange: make GetVehicleTrackdir a member function of Vehicle. 15 years ago
smatz 62a7948af0 (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 6afce484bb (svn r16373) -Codechange: use () instead of (void) for functions without parameters 15 years ago
smatz 1e45f4bc4c (svn r16357) -Codechange: delete invalid depots in TTD savegames caused by improper SVXConverter conversions 15 years ago
smatz a0ff6363e6 (svn r16353) -Fix (r1): invalid read when OTTD savegame contains VEH_INVALID 15 years ago
smatz 8808f3beea (svn r16352) -Codechange: use PoolItem::GetIfValid() instead of PoolItem::IsValidID() and PoolItem::Get() 15 years ago
smatz 5fe906e149 (svn r16351) -Fix (r14773): signal handler could end in endless loop 15 years ago
smatz 0af27062c4 (svn r16349) -Codechange: rename IsPlainRailTile() to IsPlainRail(), introduce shiny new IsPlainRailTile() 15 years ago
rubidium 10406e8ad6 (svn r16346) -Codechange: don't exploit the pool system in the way done for the saveload pool; it makes writing replacements unnecessarily difficult. And now we've got SmallVector that does more than enough for saving with less lines of 'interface' code. 15 years ago
smatz 570af0ce44 (svn r16338) -Codechange: split loading of references to two phases
In the first phase, indexes are stored. In the second phase, indexes are checked for validity and converted to pointers
15 years ago
smatz 76784501a8 (svn r16335) -Codechange: indenting fixes in saveload.cpp 15 years ago
smatz 4876e346d5 (svn r16334) -Codechange: use NeedLength enum 15 years ago
smatz 3322cc978f (svn r16331) -Codechange: replace _sl.save by an enum 15 years ago
rubidium b23c967230 (svn r16330) -Fix (r16329): we were shortly visited by Mr. Kenobi. 15 years ago
rubidium f457cff73c (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 6b2f9e8c9e (svn r16328) -Fix: desync when removing lots of stations 15 years ago
smatz 871107f529 (svn r16327) -Codechange: replace IsValidPoolItemID(index) by PoolItem::IsValidID(index) 15 years ago
smatz ed1e54bd84 (svn r16326) -Codechange: replace GetPoolItemPoolSize() by PoolItem::GetPoolSize() 15 years ago
smatz 6221d74644 (svn r16325) -Codechange: replace GetPoolItem(index) by PoolItem::Get(index) 15 years ago
smatz aff7a9e953 (svn r16320) -Fix (r11939): loading of savegames created in revision between 0.3.5 and 0.3.6 caused crash 15 years ago
yexo 31eff1d4c3 (svn r16315) -Codechange: move the autorenew settings to a new CompanySettings struct 15 years ago
smatz f5316c5cbd (svn r16269) -Codechange: use gcc's ability to check parameters sent to printf-like functions
-Fix: wrong number of parameters or wrong parameter types sent to printf-like functions at several places
15 years ago
rubidium 2664f2a2d9 (svn r16242) -Codechange: rework pausing
-Fix [FS#2864]: autopause and manual pausing conflict with eachother
-Fix: new game + pause on new game + autopause make the game not unpause on the first join
16 years ago
rubidium 73fd0db237 (svn r16214) -Fix [FS#2878]: shared orders without orders weren't properly converted causing corrupt/invalid orders when loading pre 0.7 savegames. 16 years ago
rubidium d21f406b03 (svn r16133) -Fix (r16129): who would've thought that the saveload system couldn't handle skipping strings on load yet? 16 years ago
rubidium ff05dc8446 (svn r16129) -Feature-ish: configurable digit group separator per language with user override. 16 years ago
rubidium 59d45a04d6 (svn r16118) -Change/cleanup: remove the hexadecimal 'in TTD the string had this ID' from 'some' strings and replace the string name with something more sensible. 16 years ago
rubidium 5790293af6 (svn r16037) -Feature: allow (per order) to let a train stop at the near end, middle or far end of a platform from the point of view of the driver of the train that enters the station. 16 years ago
glx 75c99d8b9b (svn r15893) -Add: watermark crash.sav and don't generate crash information if a loaded crash.sav causes a crash 16 years ago
peter1138 3abddfe705 (svn r15799) -Codechange: Save rail type label list to savegame and perform mapping on load if necessary. 16 years ago
smatz 36dfa1f21e (svn r15727) -Codechange: apply coding style to namegen arrays
-Fix (r1307): missing comma in _name_original_english_4
16 years ago
rubidium b25a4f8231 (svn r15718) -Cleanup: apply some comment coding style on the rest of the sources too 16 years ago
rubidium 9d018723b7 (svn r15711) -Codechange: lots of whitespace cleanup/fixes 16 years ago
belugas f6e4bc765a (svn r15695) -Feature [FS#2672]: Allow the number of towns that will be generated in the generate world window to be customized.
Some warnings: 
-the maximum number of towns to be accepted is set to 5000
-the minimum number of towns to be accepted is set to 1
-the number that is specified is NOT guaranteed to be the exact number of towns generated.  The normal mechanism of town creation has not been modified.  So town placement can still fail.
-setting a custom number of town will change your difficulty settings to custom as well
16 years ago
rubidium f67e2a41ce (svn r15678) -Fix (r15676): crash when (re)applying newgrf settings 16 years ago
rubidium 655b0ccc2e (svn r15676) -Codechange: remove the need for BeginVehicleMove and merge VehiclePositionChanged and EndVehicleMove. 16 years ago
rubidium fb2ea6c9ed (svn r15672) -Codechange: (left,right,top,bottom)_coord -> coord.(left,right,top,bottom), i.e. use Rect. 16 years ago
frosch 987e72f4f2 (svn r15645) -Fix (r12924)[FS#2612]: Add an EngineOverrideManager to give the term 'compatible newgrf' again some sense and to not crash because of trivial changes. 16 years ago
smatz 7c8474da13 (svn r15642) -Codechange: use a default parameter value in CalcClosestTownFromTile 16 years ago
rubidium 86ca408d46 (svn r15626) -Fix [FS#2698]: UTF8 string handling could cause buffer overruns. 16 years ago
rubidium 0d8da02ec1 (svn r15610) -Change: allow loading of heightmaps and savegames (any form) that are in .tar files 16 years ago
rubidium 7831346ef8 (svn r15601) -Fix [FS#2615]: bridges/tunnels don't store tram owner making it possible to remove someone's tram tracks.
-Feature: allow building road stops on road/tram tracks of competitors.
16 years ago
smatz 3fdac6f702 (svn r15588) -Fix: change owner of waypoints and deleted stations when merging companies or when a company benkrupts 16 years ago
yexo fb7b0536e7 (svn r15584) -Codechange: Move several variables from variables.h to more appropriate headers. 16 years ago
rubidium c4fb879561 (svn r15532) -Fix (r15525): don't try to load (and forget) AI data from a non-existing AI when joining a server. In other words: you can join network servers again. 16 years ago
yexo ef67e59145 (svn r15528) -Fix (r15525): Check should be the other way around (thanks SmatZ). 16 years ago
yexo 2fdc395d45 (svn r15525) -Fix: Don't try to find the AIs the server runs when joining a mp server. 16 years ago
smatz b9b14bd803 (svn r15500) -Fix (r12648): pre-0.5 OTTD stored new_nonstop and full_load_any in a different way, savegame conversion wasn't working for them 16 years ago
peter1138 ad30a3c4ca (svn r15436) -Codechange: Return index of station spec within station class as a return parameter of GetCustomStationSpecByGrf(), as the index is already known. Saves on an extra loop and an extern... 16 years ago
rubidium c0a8d09ca7 (svn r15428) -Codechange: consistently use colour instead of having both color and colour. 16 years ago
rubidium 9907742a0f (svn r15423) -Codechange: split widget related types to their own header and add a bit of type strictness. 16 years ago
rubidium 377ce6c5bf (svn r15410) -Cleanup: get rid of most of the references to the 'patches' except where it's used for backward compatability. 16 years ago
peter1138 5f8c2b1b4e (svn r15407) -Codechange: When loading a save game with an invalid pool index, report the problem (invalid index) rather than an impossible symptom (too many items), and report it in game instead of causing a crash. 16 years ago
smatz 832e392855 (svn r15340) -Fix [FS#2121]: changing town road layout in-game caused ugly road networks
-Fix: use a flag instead of TL_NO_ROADS to forbid towns to build roads. The flag is ignored during world generation, so there won't be 'ghost' towns anymore
-Feature: town layout is now stored per town, so it is possible to (manually) set different layout for each town
16 years ago
frosch 2afa9312fc (svn r15304) -Fix [FS#2587]: When loading savegames use the roadtype of the front vehicles just like it is done on construction. 16 years ago
smatz 16b9dcd0ea (svn r15303) -Fix (r12381): desync if a GRF used town's last month max. pass/mail 16 years ago
smatz 0d3f5e6e74 (svn r15299) -Cleanup: remove many redundant includes 16 years ago
belugas 3671ed9e4f (svn r15290) -Codechange: Isolate size and section of the UnMovable HQ object, in order to keep the Unmovable type free of any irrelevant data 16 years ago
rubidium 7d64441008 (svn r15287) -Cleanup: some code style, remove erroneous comment.
-Document: the fact that zlib reads uninitialised data (valgrind notices this) and that it won't be fixed in zlib and that we can't do anything about it except ignoring it.
16 years ago
smatz 562299d809 (svn r15274) -Fix (r8705): oldloader wasn't updated to use 64bit airport_flags 16 years ago
peter1138 7afd506301 (svn r15272) -Codechange: Check that engine types of vehicles are valid and for the correct type on loading a game. This prevents a crash/assertion failure if required NewGRFs are not available. This won't make the game playable, but will let you see what NewGRFs are required. 16 years ago
smatz dbc4a8b331 (svn r15257) -Cleanup: remove Company::is_noai, it is not needed anymore 16 years ago
smatz 4493bd03e3 (svn r15256) -Fix (r15027): use of uninitialised variable while saving/loading game with AIs 16 years ago
smatz 12bcc254c8 (svn r15251) -Fix (r15249): trains from 0.2.0-0.3.0 could be in 'stopping' state instead of 'stopped' (this problem doesn't affect trains in depot) 16 years ago
smatz 8278fc2149 (svn r15249) -Fix [FS#2576]: force trains from old (and other vehicles from 'recent') savegames to have zero cur_speed while stopped (cooperation with frosch123) 16 years ago
smatz 3964b2dd8c (svn r15248) -Fix [FS#2561]: we require v->cur_speed to be zero for wagons and non-front engines 16 years ago
Yexo 757b11325b (svn r15239) -Fix [FS#2579]: The start date of random AIs was not stored in the config file or the savegame. 16 years ago
smatz 789fa42f52 (svn r15230) -Fix (r1): aircraft could have zero speed while in air after loading old savegame 16 years ago
smatz e3cc807c7a (svn r15227) -Fix [FS#2571](r1): aircraft could be 'loading in the air' after converting old savegames 16 years ago
smatz 042d7800d0 (svn r15223) -Codechange: move GetOldTownName to oldloader_sl.cpp as it is specific to loading of TTO/TTD savegames 16 years ago
rubidium 67a2dd12e8 (svn r15220) -Fix (r15216): signedness warning 16 years ago
Yexo c8cbdc17d3 (svn r15219) -Fix (r15216): MSVC failed to find the proper casts. 16 years ago
smatz 6dffd8ae82 (svn r15216) -Feature: native support for Transport Tycoon (Original) savegames. Based on SVXConverter's source code and documentation by Roman Vetter 16 years ago
smatz 3852ae1264 (svn r15211) -Fix (r15190): loading of TTD savegames was broken 16 years ago
Yexo db3ee34b44 (svn r15190) -Feature: Allow terraforming of the tiles at the edges of the map. 16 years ago
smatz 5e7669b539 (svn r15189) -Cleanup: remove unused includes 16 years ago
smatz 376edabb65 (svn r15183) -Fix: stand-alone rail tiles with invalid owner were not removed. Also, make the whole check a bit more intelligent. 16 years ago
smatz 3511218e37 (svn r15181) -Fix (r15180): of course it is enough to update aircraft once... 16 years ago
smatz 90381d5d63 (svn r15180) -Fix [FS#2560](r8498): old aircraft have to be updated after updating airport_type of oil rigs 16 years ago