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
13 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