rubidium
85255ea001
(svn r21795) -Fix (r21790): when converting TTDPatch train waypoints, convert the data on the map as well
2011-01-14 20:52:22 +00:00
smatz
75351f4043
(svn r21794) -Fix (r21790): convert train orders too (Rubidium)
2011-01-14 19:51:50 +00:00
smatz
110e25e859
(svn r21793) -Fix (r20446): broken usage of GetTileOwner() caused wrong conversion of old savegames
2011-01-14 18:58:03 +00:00
smatz
c58a910c8e
(svn r21790) -Fix [FS#4398]: TTDPatch savegames can have train waypoints encoded as buoys
2011-01-14 16:49:29 +00:00
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
2011-01-14 16:20:25 +00:00
smatz
ff469ab352
(svn r21784) -Fix (r16909): crash when converting savegame with custom waypoint name
2011-01-14 16:15:05 +00:00
rubidium
4cc2d71d6d
(svn r21731) -Fix (r21728): don't forget to update the saveload version, or to check for MSVC warnings
2011-01-05 07:57:10 +00:00
rubidium
eab47d2227
(svn r21728) -Fix/Feature [FS#4331]: (configurably) limit amount of tiles that can be cleared/terraformed by a company
2011-01-04 22:50:09 +00:00
terkhen
2103f7e91a
(svn r21718) -Feature: Show a list of companies in the owner legend.
2011-01-04 20:57:11 +00:00
peter1138
1b61d234a1
(svn r21710) -Fix (r8128): Update oldloader for change in vehicle cur_image size.
2011-01-04 12:22:27 +00:00
peter1138
3408814169
(svn r21709) -Fix (r8128): Vehicle sprite was cached into a 16 bit variable, causing incorrect sprites to be displayed.
2011-01-04 12:04:09 +00:00
smatz
e7971c2971
(svn r21657) -Cleanup (r17107): remove superfluous semicolon
2010-12-29 13:47:53 +00:00
terkhen
48b7916458
(svn r21521) -Codechange: Unify some cached values that were present in both road vehicles and trains.
2010-12-14 21:33:53 +00:00
terkhen
79e2b3153d
(svn r21516) -Codechange: Add IsGroundVehicle function to the Vehicle class.
2010-12-14 21:26:03 +00:00
rubidium
49a77e89c4
(svn r21504) -Codechange: move the "lost" bit from the train's flags to vehicle flags
2010-12-13 21:52:39 +00:00
rubidium
cd6180a46d
(svn r21453) -Codechange: add the view of an object to the savegame
2010-12-10 21:32:04 +00:00
rubidium
df410fd7ed
(svn r21426) -Change: introduce a setting for the types of commands that are allowed to be executed while paused
2010-12-07 21:08:08 +00:00
rubidium
085c693289
(svn r21395) -Codechange: move the save and load filter's interface to a header
2010-12-05 14:41:34 +00:00
rubidium
5ff58155d1
(svn r21394) -Codechange: split the actual savegame loading from SaveOrLoad as well
2010-12-05 14:37:54 +00:00
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"
2010-12-05 14:35:55 +00:00
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
2010-12-04 13:04:19 +00:00
rubidium
a0fb4c8a13
(svn r21381) -Fix (r21377,r21375): some compilers have to spoil the fun...
2010-12-04 10:08:32 +00:00
rubidium
b7d2d79581
(svn r21380) -Codechange: move ThreadedSave variables to a more logical place, and move an include to the right place
2010-12-04 09:56:13 +00:00
rubidium
bf7da9b3a8
(svn r21379) -Codechange: move the actual save code into a separate function
2010-12-04 09:54:38 +00:00
rubidium
a7b9297d20
(svn r21378) -Codechange: move the logic for reading bytes from a savegame into a class
2010-12-04 09:53:43 +00:00
rubidium
1d8d046823
(svn r21377) -Codechange: rewrite the savegame decompressors to behave more like filters
2010-12-04 09:52:52 +00:00
rubidium
d1db18757d
(svn r21376) -Codechange: generalise ClearMemoryDumper
2010-12-04 09:43:13 +00:00
rubidium
8d81e17acc
(svn r21375) -Codechange: rewrite the savegame compressors to behave more like filters
2010-12-04 09:09:29 +00:00
rubidium
b250888aa3
(svn r21373) -Codechange: rewrite the game state to memory dumper
2010-12-02 23:08:22 +00:00
rubidium
d81cee085b
(svn r21371) -Codechange: pass the buffer to the compressor directly instead of using a global variable
2010-12-02 22:43:10 +00:00
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
2010-11-23 18:26:02 +00:00
alberth
3e27739287
(svn r21284) -Codechange: Rename CheckSavegameVersion() to IsSavegameVersionBefore().
2010-11-21 12:47:04 +00:00
alberth
5f8afaadb7
(svn r21283) -Codechange: Allow minor argument IsSavegameVersionBefore() to be optional.
2010-11-21 12:38:16 +00:00
alberth
edef25d30c
(svn r21282) -Codechange: Rename CheckSavegameVersionOldStyle() to IsSavegameVersionBefore().
2010-11-21 12:31:16 +00:00
alberth
2974141641
(svn r21281) -Doc: Add doxygen comments to saveload code.
2010-11-21 12:12:23 +00:00
alberth
3b0ee65571
(svn r21270) -Doc: Doxyment updates and additions. Removal of doxyment in code.
2010-11-20 14:15:02 +00:00
alberth
9d899b3758
(svn r21267) -Doc: Typo fixes.
2010-11-20 13:33:24 +00:00
rubidium
097880c5e2
(svn r21263) -Fix [FS#3935]: under some circumstances two vehicles could leave a non-drive through road stop at once
2010-11-20 09:09:57 +00:00
rubidium
d572100585
(svn r21195) -Fix [FS#4230] (r21135): in some corner cases the savegame conversion didn't do the right thing
2010-11-14 21:39:12 +00:00
alberth
f22fb0d53d
(svn r21171) -Change: Reset industry build data at game start or load.
2010-11-13 15:15:25 +00:00
alberth
4d419b9f3e
(svn r21170) -Codechange: Store industry management data in the save game (some of it is used in the very near future).
2010-11-13 15:13:14 +00:00
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.
2010-11-12 19:40:39 +00:00
terkhen
6a38925ca3
(svn r21123) -Codechange: Remove max_speed from the Vehicle class.
2010-11-09 17:43:05 +00:00
terkhen
25d1b2f54b
(svn r21098) -Codechange: Ships now store their max speed in the cache instead of recalculating it every time.
2010-11-06 13:03:17 +00:00
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
2010-11-01 22:27:34 +00:00
rubidium
adde677c0a
(svn r21073) -Fix: spelling errors in comments
2010-11-01 22:12:12 +00:00
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.
2010-10-27 16:42:20 +00:00
frosch
3866ecad38
(svn r20918) -Add: Store NewGRF version information from Action14 in savegame. (planetmaker)
2010-10-12 17:47:15 +00:00
smatz
77fe95f552
(svn r20860) -Cleanup: remove some unused functions and variables
2010-10-01 16:42:28 +00:00
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".
2010-09-28 22:00:24 +00:00
terkhen
e90930e572
(svn r20832) -Feature: Allow to select a custom percentage of water in the map generation window (based on patch by CommanderZ).
2010-09-20 18:56:35 +00:00
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
2010-09-16 22:06:36 +00:00
rubidium
5b733f88a8
(svn r20818) -Fix [FS#3791]: make the crash-on-saveload message clearer and more correct
2010-09-16 21:13:16 +00:00
rubidium
af18c30f30
(svn r20816) -Codechange [FS#3835]: make waypoint default names work like depots, stations and vehicles (Krille)
2010-09-16 16:31:57 +00:00
rubidium
b01c63cd23
(svn r20815) -Revert (r20814): wrong patch at wrong time...
2010-09-16 16:31:38 +00:00
rubidium
9a0a753d96
(svn r20814) -Codechange [FS#3835]: make waypoint default names work like depots, stations and vehicles (Krille)
2010-09-16 16:28:40 +00:00
yexo
7b0fd807fb
(svn r20717) -Fix [FS#4103]: water class was not set for stations
2010-09-01 23:41:56 +00:00
rubidium
dd2c38ea82
(svn r20708) -Fix [FS#4101]: upon company bankruptcy some objects weren't removed properly
2010-09-01 06:15:26 +00:00
rubidium
8fd9728e19
(svn r20659) -Feature: make the (flat) area around an industry configurable (Eddi|zuHause)
2010-08-28 18:37:49 +00:00
rubidium
e0ba6550d2
(svn r20658) -Codechange: add the colour of an object to the object instance
2010-08-28 18:28:34 +00:00
rubidium
bd48893478
(svn r20656) -Codechange: implement counting of objects
2010-08-28 18:23:14 +00:00
rubidium
1ec1f1ef37
(svn r20648) -Codechange: implement the NewGRF override manager for objects
2010-08-28 17:30:55 +00:00
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".
2010-08-27 10:50:21 +00:00
rubidium
30f2afac9b
(svn r20632) -Cleanup: remove "a few" unneeded includes, and add them to some headers
2010-08-26 22:01:16 +00:00
rubidium
4efa2efdbb
(svn r20622) -Codechange: unify [GS]et[Statation|Object|Industry|House]AnimationFrame
2010-08-26 14:45:45 +00:00
rubidium
7f86dcca90
(svn r20621) -Codechange: move animation frames of houses, objects and industries to m7 (same as airports and stations)
2010-08-26 14:36:00 +00:00
frosch
9390bddbbd
(svn r20610) -Fix (r20609): X and Y got swapped.
2010-08-24 16:15:42 +00:00
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
2010-08-24 16:00:35 +00:00
rubidium
29e02728e1
(svn r20592) -Fix (r2041): no (proper) savegame conversion was done when _date_fract got a new value range
2010-08-22 09:21:56 +00:00
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
2010-08-22 09:18:01 +00:00
rubidium
926594b599
(svn r20547) -Change: the way order backups are performed. Now restoring an order doesn't require up to 765 commands.
2010-08-18 20:48:38 +00:00
yexo
afb60ec59c
(svn r20528) -Fix: in old savegames aircraft can have an invalid state
2010-08-17 21:46:25 +00:00
rubidium
89b2b9370a
(svn r20482) -Codechange: move some object related information off the map and unify the relation objects have to towns
2010-08-13 12:45:26 +00:00
rubidium
cfde445ec9
(svn r20450) -Fix: same the airport tile ID mapping as well
2010-08-11 19:09:26 +00:00
rubidium
d6004d17d4
(svn r20449) -Codechange: unduplicate saving/loading of NewGRF ID + local id -> OpenTTD spec mappings
2010-08-11 18:57:48 +00:00
rubidium
ab5b0ceff2
(svn r20446) -Codechange: unify the location of the water class
2010-08-11 14:14:06 +00:00
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.
2010-08-08 10:59:30 +00:00
rubidium
edbadde301
(svn r20406) -Codechange: make StationClass use the new generic class
2010-08-07 22:07:07 +00:00
rubidium
b6a0806948
(svn r20400) -Codechange: let StationSpec use GRFFilePropsBase
2010-08-07 20:52:45 +00:00
yexo
a3a24f4c68
(svn r20376) -Feature [FS#3093]: add setting for none/original/more smoke (SirkoZ)
2010-08-05 12:09:08 +00:00
yexo
f8b7163b34
(svn r20375) -Codechange: make sure the watertype for existing airport tiles is set to invalid
2010-08-05 12:06:53 +00:00
yexo
2e6713ce95
(svn r20374) -Codechange: add persistant storage for airports
2010-08-05 12:06:13 +00:00
yexo
d2f9b87ccd
(svn r20366) -Codechange: store the rotation of the airport layout in the station struct and use it to rotate hangar tiles
2010-08-05 12:00:09 +00:00
yexo
330c2f979e
(svn r20365) -Codechange: allow multiple layouts for one airport statemachine, store the layout number
2010-08-05 11:59:07 +00:00
rubidium
3bfe26c69d
(svn r20337) -Codechange: unify the construction of objects on the map
2010-08-03 08:58:12 +00:00
rubidium
ffedcc6533
(svn r20335) -Codechange: change the name of some unmovable map accessors
2010-08-03 08:16:06 +00:00
rubidium
f44c51577b
(svn r20334) -Codechange: reorder the unmovable bits a bit for futher extension
2010-08-03 08:09:45 +00:00
yexo
dff871b40d
(svn r20311) -Codechange: don't reserve extra space in the savegame that is never used
2010-08-02 18:24:09 +00:00
terkhen
80c43f52e8
(svn r20289) -Codechange: Unify fall through coding style.
2010-08-01 20:52:11 +00:00
frosch
4bd32799f1
(svn r20286) -Codechange: Unify end of doxygen comments.
2010-08-01 19:44:49 +00:00
frosch
ed4f806f1d
(svn r20283) -Codechange: Unify start of doygen comments.
2010-08-01 19:22:34 +00:00
rubidium
e356cb9405
(svn r20281) -Codechange: unify case scope closure + break coding style
2010-08-01 18:53:30 +00:00
alberth
a825b4fa5f
(svn r20266) -Doc: Mostly typo fixes, a few doxygen-related improvements.
2010-07-31 21:02:56 +00:00
rubidium
e469a94a2d
(svn r20253) -Codechange: change GRFConfig::windows_paletted into a bitmask/bitset
2010-07-31 09:40:43 +00:00
rubidium
f7794e313f
(svn r20252) -Codechange: deduplicate logic for setting a suitable (initial) palette for NewGRFs
2010-07-31 09:36:09 +00:00
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
2010-07-30 22:57:46 +00:00
terkhen
88ca183191
(svn r20239) -Doc: Give a common name to all fall throughs (FALL THROUGH).
2010-07-29 14:26:28 +00:00
rubidium
fc6f336fee
(svn r20233) -Codechange: fix/unify coding and comment style a bit
2010-07-28 09:48:35 +00:00
rubidium
d72ee2bc57
(svn r20232) -Codechange: shuffle a few functions around so they don't need to be declared in advance
2010-07-28 09:47:31 +00:00
rubidium
70ff0d7513
(svn r20231) -Document: which version had which savegame version
2010-07-28 09:23:42 +00:00
alberth
be6c058424
(svn r20211) -Codechange: Indented code should have curly braces around it.
2010-07-24 10:14:39 +00:00
rubidium
b8487afe54
(svn r20192) -Cleanup: bye bye variables.h, bye bye VARDEF... you won't be missed :)
2010-07-19 17:28:27 +00:00
rubidium
3bb544e54d
(svn r20184) -Codechange: make _trees_tick_ctr and _disaster_delay not use VARDEF and put them in a more logical location
2010-07-19 15:51:06 +00:00
rubidium
45213e5708
(svn r20183) -Codechange: make _do_autosave and _dedicated_forks not use VARDEF and put them in a more logical location
2010-07-19 15:44:49 +00:00
rubidium
e809c05099
(svn r20164) -Fix [FS#3870]: inconsistencies w.r.t. to km/h vs km-ish/h as "base" unit for aircraft speeds
2010-07-16 17:45:34 +00:00
rubidium
72bfda4634
(svn r20090) -Fix: savegames would (very likely) end with 128 KiB worth of useless zeros
2010-07-08 18:45:52 +00:00
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
2010-07-08 11:50:42 +00:00
michi_cc
a75583bbb6
(svn r20048) -Feature: Add a setting to forbid towns building level crossings.
2010-07-02 16:34:07 +00:00
alberth
604e56adc2
(svn r20025) -Doc: Fix/add comments to let Doxygen know about the documentation.
2010-06-27 09:05:10 +00:00
rubidium
52154e097c
(svn r20013) -Fix [FS#3890]: silence some warnings / take the advice of the warnings into account
2010-06-23 14:38:17 +00:00
frosch
e931399b31
(svn r20005) -Codechange: Enumify force_proceed.
2010-06-21 17:35:27 +00:00
yexo
9cfb61adf5
(svn r20003) -Feature [FS#3886]: [NewGRF] var 43 depot build date for railtypes
2010-06-20 19:13:02 +00:00
frosch
58f2a1d014
(svn r19985) -Fix (r19980): Loading preview data from old savegames failed indeterministically due to non-zeroed memory allocation. Thanks smatz.
2010-06-13 14:52:42 +00:00
frosch
d9b4d92050
(svn r19981) -Add: Read NewGRF configuration during SL_LOAD_CHECK.
2010-06-13 14:15:58 +00:00
frosch
16618e6f16
(svn r19980) -Add: Load some general data from savegames on SL_LOAD_CHECK.
2010-06-13 14:15:36 +00:00
frosch
e95518c8e9
(svn r19979) -Codechange: Separate static loadable fields from Company into separate struct.
2010-06-13 14:15:11 +00:00
frosch
86244ad31e
(svn r19977) -Add: Read current date during SL_LOAD_CHECK.
2010-06-13 14:14:20 +00:00
frosch
2d8c2af5e9
(svn r19976) -Add: Read mapsize during SL_LOAD_CHECK.
2010-06-13 14:13:49 +00:00
frosch
8d9b573f8f
(svn r19975) -Add: SL_LOAD_CHECK mode for partial reading of savegames.
2010-06-13 14:13:23 +00:00
frosch
e8248cf113
(svn r19974) -Add: SlSkipArray() to skip arrays and sparse arrays in savegames.
2010-06-13 14:12:21 +00:00
frosch
62ac138154
(svn r19973) -Codechange: Add another procedure to chunk handlers for checking savegames (empty for now).
2010-06-13 14:11:59 +00:00
frosch
641fc68aa8
(svn r19971) -Codechange: Make IsGoodGRFConfigList() operate on any given GRFConfig and move the GameLog operations directly to AfterLoad().
2010-06-13 14:07:49 +00:00
frosch
1d3adb2b66
(svn r19931) -Fix (r19914): Convert assertion in Backup<> destructor into DEBUG() output. It was triggered on exceptions, especially when aborting world generation.
2010-06-05 12:16:12 +00:00
frosch
9db3cde73a
(svn r19914) -Codechange: Wrap a helper class around temporary assignments of _current_company to ensure proper restoration.
2010-05-31 20:22:57 +00:00
smatz
911061ac38
(svn r19850) -Codechange: move declaration of InitializeRailGUI() to rail_gui.h
2010-05-18 01:10:23 +00:00
rubidium
398418b8fa
(svn r19812) -Codechange: give some unnamed enums a name or, in case they consisted of unrelated values use static const (u)int
2010-05-13 09:44:44 +00:00
smatz
d568a4258b
(svn r19806) -Codechange: silence one warning
2010-05-13 05:34:21 +00:00
rubidium
93ff7d78e1
(svn r19799) -Change: give depots an unique name in the same manner buoys and waypoints are named
2010-05-12 19:21:00 +00:00
frosch
5b77a63ecf
(svn r19769) -Fix [FS#3820]: MV_VOID tiles shall have no tropic zone.
2010-05-08 14:43:59 +00:00
rubidium
ac9af8e1e1
(svn r19738) -Fix: MSVC 64 bits compile warnings
2010-04-29 18:28:24 +00:00
terkhen
1d60eac168
(svn r19715) -Codechange: Rename all appareances of shiplift to lock.
2010-04-24 21:03:40 +00:00
rubidium
a6f46657ab
(svn r19638) -Change: log the _date and _date_fract in the desync log for saved games
2010-04-14 20:29:39 +00:00
rubidium
7590651aea
(svn r19612) -Fix [FS#3756] (r3212): crash when opening a savegame with a waypoint from around 0.4.0
2010-04-11 21:46:20 +00:00
rubidium
d8baa1342c
(svn r19589) -Change: add some more useful information to the desync log and unify the formatting
2010-04-08 21:14:49 +00:00
smatz
53aaabe6e9
(svn r19507) -Codechange: remove semicolon after DECLARE_POSTFIX_INCREMENT and DECLARE_ENUM_AS_BIT_SET
2010-03-23 22:25:43 +00:00
frosch
116a5f56a4
(svn r19481) -Codechange: Turn _industry_counts into a static member of Industry.
2010-03-20 14:30:16 +00:00
yexo
2b62e467af
(svn r19458) -Fix (r19457): svn add the new file
2010-03-18 23:14:47 +00:00
yexo
38f4cb6469
(svn r19457) -Codechange: introduce AirportOverrideManager to keep track of airports if a newgrf can't be found
2010-03-18 23:12:38 +00:00
yexo
c4a88ce022
(svn r19455) -Codechange: split all airport information in Station to a seperate class
2010-03-18 21:02:20 +00:00
yexo
05d29d8a3d
(svn r19435) -Fix: when loading a savegame created with a house newgrf without that newgrf available all houses became tall office blocks
2010-03-16 16:04:35 +00:00
yexo
e3591f8a1d
(svn r19429) -Fix: when the title game contains an AIPL block the AI settinsg where overwritten by those from the title game
2010-03-15 22:42:43 +00:00
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
2010-03-13 00:15:24 +00:00
terkhen
4eb6e3f060
(svn r19392) -Codechange: Increase the maximum size of a TileArea.
2010-03-12 19:38:00 +00:00
yexo
22081cbd19
(svn r19382) -Fix (r19381): don't break savegame version 139
2010-03-10 18:59:40 +00:00
yexo
1a28aaf69e
(svn r19381) -Fix [FS#3670] (r19198): airport size wasn't properly stored in the savegame
2010-03-10 18:51:56 +00:00
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
2010-03-10 18:46:26 +00:00
terkhen
b443a3ee0a
(svn r19346) -Feature: Configurable slope steepness for road vehicles from 0% to 10%, default is 7%.
2010-03-06 12:58:33 +00:00
terkhen
c958c2c31f
(svn r19345) -Feature: Realistic acceleration for road vehicles.
2010-03-06 12:56:57 +00:00
terkhen
06a3faa651
(svn r19343) -Codechange: Make RoadVehicle a child class of GroundVehicle.
...
-Add: Required acceleration functions at RoadVehicle.
2010-03-06 12:54:42 +00:00
terkhen
4e6cac84d6
(svn r19341) -Codechange: Move GOINGUP/GOINGDOWN flags to GroundVehicle.
...
-Codechange: Move GetSlopeResistance to GroundVehicle.
2010-03-06 12:50:55 +00:00
yexo
308781664b
(svn r19322) -Codechange: change the id of the oilrig airport from 15 to 9
2010-03-05 23:20:02 +00:00
yexo
7ff55502f0
(svn r19256) -Codechange: use a constructor/destructor for GRFConfig to make sure all members are properly initialized
2010-02-25 20:06:11 +00:00
yexo
a9c8dbc0a0
(svn r19255) -Codechange: encapsulate GRFIdentifier in GRFConfig instead of subclassing it
2010-02-25 20:05:31 +00:00
smatz
f051066bc4
(svn r19224) -Codechange: change parameters passed to ShowErrorMessage() a bit
2010-02-24 14:46:15 +00:00
yexo
698737f485
(svn r19198) -Codechange: store the size of stations in savegames
2010-02-22 14:17:07 +00:00
rubidium
7a73a7490d
(svn r19090) -Codechange: some comment coding style fixes
2010-02-10 21:06:05 +00:00
rubidium
21bd2722cd
(svn r19081) -Codechange: make it possible to disable compilation of the AI+Squirrel
2010-02-10 16:24:05 +00:00
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.
2010-02-06 17:26:21 +00:00
rubidium
64ead0b513
(svn r19022) -Fix (r18770): loading old (0.1-ish) savegames failed
2010-02-05 20:22:01 +00:00
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
2010-02-05 20:18:30 +00:00
smatz
54f958c8e5
(svn r18954) -Fix (r18952): missing 'inline'
2010-01-29 23:54:00 +00:00
yexo
dc714960e3
(svn r18952) -Fix (r18950): loading recent (=newer then title game) savegames failed
2010-01-29 21:06:35 +00:00
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
2010-01-29 00:03:31 +00:00
yexo
fa01b25f74
(svn r18942) -Feature [FS#2678]: add a setting to reduce/disable aircraft crashes
2010-01-28 22:34:14 +00:00
yexo
388c713f08
(svn r18912) -Codechange: free up a bunch of airporttile ids by using the tile animation frame
2010-01-24 20:25:28 +00:00
michi_cc
a4f50de959
(svn r18904) -Fix: Writing LZO-compressed savegames would produce invalid files and potentially overwrite memory.
2010-01-23 22:23:45 +00:00
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
2010-01-16 19:08:33 +00:00
rubidium
aaf0b4b46c
(svn r18812) -Codechange: make some functions in train.h functions of Train.
2010-01-15 18:23:52 +00:00
rubidium
82fc28f77f
(svn r18809) -Codechange/Cleanup: remove unneeded headers from some files, if a header require a header make it include that header
2010-01-15 16:41:15 +00:00
rubidium
3ebec78900
(svn r18775) -Fix (r18769): non-LZO code used LZO defines, also replace #define with static const uint and add some documentation.
2010-01-10 21:20:51 +00:00
rubidium
aca2daf841
(svn r18772) -Feature-ish: allow user customisable compression levels for the zlib compression
2010-01-10 15:35:13 +00:00
rubidium
188c8ebd5c
(svn r18771) -Codechange: minor cleanups in saveload code
2010-01-10 14:57:05 +00:00
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.
2010-01-10 14:30:32 +00:00
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.
2010-01-10 13:12:34 +00:00
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
2010-01-09 14:43:08 +00:00
rubidium
f65f276d10
(svn r18763) -Feature [FS#3095]: rerandomise AIs on reloading (via the debug window) when they were randomly chosen
2010-01-09 14:41:22 +00:00
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
2010-01-04 18:33:43 +00:00
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.
2010-01-04 18:21:07 +00:00
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".
2010-01-03 21:29:20 +00:00
rubidium
35c79d81ef
(svn r18689) -Codechange: move the looping over chunkhandlers code to a macro
2010-01-02 15:56:20 +00:00
rubidium
58be174df2
(svn r18688) -Cleanup: remove some unused code/constants
2010-01-02 15:52:41 +00:00
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
2010-01-02 15:48:07 +00:00
rubidium
b2e9b5d612
(svn r18683) -Fix: it's not an other
2010-01-01 18:45:40 +00:00
peter1138
739aea3e1a
(svn r18674) -Feature (FS#3459): Configurable slope steepness for trains from 0% to 10%, default is 3% as before (mostly by Terkhen)
2009-12-31 10:41:03 +00:00
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
2009-12-25 23:14:12 +00:00
rubidium
5e2b7e0238
(svn r18522) -Feature: add the possibility to not make new tree tiles in-game
2009-12-17 16:59:33 +00:00
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.
2009-12-16 16:23:44 +00:00
rubidium
3e6c530e1e
(svn r18506) -Fix [FS#3368]: no error message was created for the first fatal NewGRF error.
2009-12-15 00:00:51 +00:00
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)
2009-12-13 19:33:07 +00:00
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.
2009-12-13 10:48:44 +00:00
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
2009-12-04 20:52:19 +00:00
rubidium
aa40d8e3ad
(svn r18388) -Codechange: move entering/leaving of road stops to functions of RoadStop
2009-12-02 23:53:15 +00:00
rubidium
0ef0e13795
(svn r18385) -Cleanup: remove the now unneeded multistop slot management code
2009-12-02 18:18:56 +00:00
rubidium
429f3993f8
(svn r18384) -Fix (r18351): attempt to 'work around' MSVC's IMO stupid warning
2009-12-02 18:14:34 +00:00
rubidium
9426f2b173
(svn r18379) -Codechange: move the cache updating function to its own header to reduce the include 'pathfinder' dependencies
2009-12-02 16:48:55 +00:00
rubidium
81062163a2
(svn r18377) -Codechange: add 'cache' of the tile area of truck and bus stops.
2009-12-02 16:20:44 +00:00
rubidium
f52e27c688
(svn r18364) -Codechange: move the pathfinders and their related files into a separate directory
2009-12-01 22:45:39 +00:00
rubidium
3a83eab967
(svn r18362) -Cleanup: remove OPF for RVs and NTP to clean up lots of code and simplify some things for the future
2009-12-01 22:18:51 +00:00
rubidium
5a41a646c2
(svn r18351) -Fix [FS#3333]: endianness issue with saving the zoom level
2009-11-30 11:29:52 +00:00
rubidium
b00a5f1069
(svn r18330) -Cleanup: remove some unneeded includes
2009-11-28 20:35:25 +00:00
rubidium
a951c505bf
(svn r18292) -Codechange: add a command to set the start date of a timetable. Based on work by PhilSophus.
2009-11-25 23:37:15 +00:00
smatz
f0c64208cf
(svn r18281) -Feature: founding towns in-game (based on work by Belugas, TheJosh, GeekToo, Terkhen and others)
2009-11-24 21:18:11 +00:00
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
2009-11-17 14:06:28 +00:00
rubidium
860b9b1cea
(svn r18028) -Codechange: unglobalise some functions
2009-11-09 10:40:33 +00:00
rubidium
c2221885f4
(svn r18027) -Codechange: make some unneededly global variables static and remove some unused variables
2009-11-09 09:59:35 +00:00
frosch
3f5e42b04a
(svn r18008) -Codechange: Rename NUM_PRICES to PR_END, and use the Price enum some more.
2009-11-08 12:23:02 +00:00
rubidium
d79439fb3c
(svn r17963) -Codechange: some documentation style
2009-11-03 17:30:08 +00:00
alberth
2d5aebb1f1
(svn r17929) -Fix (r2391): STR_NULL does not seem very useful as file save error summary.
2009-10-31 20:09:37 +00:00
alberth
44aacfc59f
(svn r17928) -Codechange: ShowErrorMessage() now takes the summary string before the details string.
...
Gentlemen, swap your string parameters.
2009-10-31 19:46:51 +00:00
rubidium
ee2d790b34
(svn r17908) -Fix [FS#3288]: uninitialised values in some paths of loading TTO savegames
2009-10-30 23:24:17 +00:00
rubidium
778f6533ea
(svn r17893) -Feature [FS#2633]: make it possible to disable background saving, only via the config file/in game console though
2009-10-27 20:28:10 +00:00
smatz
1165817cf2
(svn r17879) -Codechange: convert awarded pax subsidies from old savegames using simple heuristic (instead of deleting them)
2009-10-26 18:16:39 +00:00
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.
2009-10-20 12:31:11 +00:00
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
2009-10-20 12:20:53 +00:00
rubidium
08ac51fada
(svn r17813) -Codechange: unify the CargoPacket related coding style
2009-10-19 09:15:47 +00:00
rubidium
f11cebfe9b
(svn r17807) -Codechange: move all 'updates' just after the 'load' constructor of CargoPackets to the constructor call itself
2009-10-18 17:52:44 +00:00
rubidium
4ad30fecde
(svn r17806) -Codechange: split CargoPacket's 'afterload' to a separate function
2009-10-18 17:47:38 +00:00
rubidium
138e7233bc
(svn r17800) -Codechange: first steps into making CargoList a template
2009-10-18 14:28:26 +00:00
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.
2009-10-06 23:01:35 +00:00
rubidium
1e2dc25582
(svn r17727) -Codechange: some coding style and documentation fixes
2009-10-06 19:52:27 +00:00
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)
2009-10-06 17:23:15 +00:00
rubidium
d6cded5380
(svn r17693) -Cleanup: remove some unneeded includes
2009-10-04 17:16:41 +00:00
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.
2009-10-03 14:48:12 +00:00
smatz
662ef3173b
(svn r17597) -Codechange: rename namegen* to townname*
2009-09-21 11:01:16 +00:00
smatz
114d48e492
(svn r17596) -Codechange: constify some tables
2009-09-20 23:11:01 +00:00
smatz
9225b3ba03
(svn r17589) -Codechange: rename town_acc to always_accepted
2009-09-20 17:44:33 +00:00
rubidium
ca91a97826
(svn r17579) -Fix: remove doxygen docs for removed parameters, or change @param to @tparam if necessary
2009-09-19 15:17:47 +00:00
rubidium
e8ddf001c8
(svn r17570) -Fix: a number of Doxygen warnings about missing parameters, which were sometimes missing and sometimes just typos
2009-09-19 09:51:14 +00:00
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.
2009-09-15 20:58:44 +00:00
rubidium
14ea4e7672
(svn r17535) -Fix: compiling without networking failed; also unhackify the crash logger a bit.
2009-09-14 15:53:19 +00:00
rubidium
55ddce8da2
(svn r17493) -Codechange: store the depot index on the map
2009-09-10 14:33:07 +00:00
rubidium
bb94724a09
(svn r17492) -Codechange: don't store the town index for road depots.
2009-09-10 14:27:43 +00:00
yexo
e2122dc7f0
(svn r17483) -Fix (r17405): when an aircraft starts flying in circles make it turn in the correct direction first before continuing
2009-09-09 00:03:35 +00:00
smatz
22e9d59559
(svn r17439) -Fix (r17436): you weren't paid for cargo delivered to houses and headquarters anymore
2009-09-07 07:39:08 +00:00
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.
2009-09-06 18:53:57 +00:00
smatz
b903e41c65
(svn r17431) -Fix (r16735): oldloader wasn't updated
2009-09-06 16:36:22 +00:00
smatz
f9257fabea
(svn r17429) -Fix (r16378): conversion of TTO/TTD savegames failed when vehicle 0 was a wagon
2009-09-06 09:56:12 +00:00
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
2009-09-04 22:25:12 +00:00
yexo
16e3083ff7
(svn r17405) -Fix (r100): aircraft shouldn't be allowed to make turns bigger then 45 degrees while in flight
2009-09-03 12:11:31 +00:00
rubidium
b1d4594fa7
(svn r17343) -Codechange: it's bankruptcy, not bankrupcy, according to my Oxford Dictionary of English and Merriam-Webster.
2009-09-01 12:28:46 +00:00
rubidium
317f34b3d2
(svn r17340) -Fix: old loader tried to load a uint8 into a uint16
2009-09-01 12:14:57 +00:00
rubidium
07d2af338e
(svn r17339) -Codechange: move thread related files to their own directory (like done for video, music, sound, etc)
2009-09-01 10:07:22 +00:00
smatz
ee685c8287
(svn r17316) -Codechange: use Industry::GetByTile() instead of GetIndustryByTile()
2009-08-30 11:47:41 +00:00
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
2009-08-28 15:23:11 +00:00
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
2009-08-22 20:20:20 +00:00
rubidium
7fbc33dae1
(svn r17248) -Fix: add GPL license notice where appropriate
2009-08-21 20:21:05 +00:00
rubidium
7fb95e2c2b
(svn r17228) -Codechange: some coding style fixes
2009-08-20 10:23:39 +00:00
rubidium
d4adee0b1d
(svn r17216) -Update: MiniLZO from 1.08 to 2.03.
2009-08-18 22:26:38 +00:00
yexo
a8773bba2d
(svn r17215) -Cleanup: remove unused return value
2009-08-18 20:36:56 +00:00
rubidium
82105604c3
(svn r17212) -Change: move minilzo to its 'own' 3rdparty directory as it belongs there
2009-08-18 17:49:28 +00:00