yexo
fbf60bf1d1
(svn r19458) -Fix (r19457): svn add the new file
2010-03-18 23:14:47 +00:00
yexo
cc23ebd446
(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
22a27d3b62
(svn r19455) -Codechange: split all airport information in Station to a seperate class
2010-03-18 21:02:20 +00:00
yexo
fa9d25eb2c
(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
4c358cb1e1
(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
25e5be2b51
(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
e18436477b
(svn r19392) -Codechange: Increase the maximum size of a TileArea.
2010-03-12 19:38:00 +00:00
yexo
d13ca455b8
(svn r19382) -Fix (r19381): don't break savegame version 139
2010-03-10 18:59:40 +00:00
yexo
8bc4dbf8ab
(svn r19381) -Fix [FS#3670] (r19198): airport size wasn't properly stored in the savegame
2010-03-10 18:51:56 +00:00
yexo
38c4e21fdf
(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
f78a386b87
(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
e6878d7ba1
(svn r19345) -Feature: Realistic acceleration for road vehicles.
2010-03-06 12:56:57 +00:00
terkhen
2e18705d4e
(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
963f304f67
(svn r19341) -Codechange: Move GOINGUP/GOINGDOWN flags to GroundVehicle.
...
-Codechange: Move GetSlopeResistance to GroundVehicle.
2010-03-06 12:50:55 +00:00
yexo
4768c3f87c
(svn r19322) -Codechange: change the id of the oilrig airport from 15 to 9
2010-03-05 23:20:02 +00:00
yexo
daf89297fe
(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
b21278659c
(svn r19255) -Codechange: encapsulate GRFIdentifier in GRFConfig instead of subclassing it
2010-02-25 20:05:31 +00:00
smatz
5504b1105e
(svn r19224) -Codechange: change parameters passed to ShowErrorMessage() a bit
2010-02-24 14:46:15 +00:00
yexo
80982cc91b
(svn r19198) -Codechange: store the size of stations in savegames
2010-02-22 14:17:07 +00:00
rubidium
a7a2568985
(svn r19090) -Codechange: some comment coding style fixes
2010-02-10 21:06:05 +00:00
rubidium
1c494c6f71
(svn r19081) -Codechange: make it possible to disable compilation of the AI+Squirrel
2010-02-10 16:24:05 +00:00
rubidium
0168957924
(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
8e674964cb
(svn r19022) -Fix (r18770): loading old (0.1-ish) savegames failed
2010-02-05 20:22:01 +00:00
rubidium
cc204f134b
(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
93d93b3121
(svn r18954) -Fix (r18952): missing 'inline'
2010-01-29 23:54:00 +00:00
yexo
d9bd9bb945
(svn r18952) -Fix (r18950): loading recent (=newer then title game) savegames failed
2010-01-29 21:06:35 +00:00
yexo
f5212de089
(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
06d4f3a0f2
(svn r18942) -Feature [FS#2678]: add a setting to reduce/disable aircraft crashes
2010-01-28 22:34:14 +00:00
yexo
0f5286a388
(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
04f83cbe48
(svn r18904) -Fix: Writing LZO-compressed savegames would produce invalid files and potentially overwrite memory.
2010-01-23 22:23:45 +00:00
rubidium
fd060c7276
(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
ea240269dc
(svn r18812) -Codechange: make some functions in train.h functions of Train.
2010-01-15 18:23:52 +00:00
rubidium
9467b7c6d6
(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
ea465084b1
(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
5d997e288d
(svn r18772) -Feature-ish: allow user customisable compression levels for the zlib compression
2010-01-10 15:35:13 +00:00
rubidium
88c7e83e9d
(svn r18771) -Codechange: minor cleanups in saveload code
2010-01-10 14:57:05 +00:00
rubidium
a7676f2f86
(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
36df94ddb0
(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
ad8d6e8dd2
(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
6595434845
(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
2a6fc142de
(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
6cac8be361
(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
f99c8b3f21
(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
5d5f0ed1e0
(svn r18689) -Codechange: move the looping over chunkhandlers code to a macro
2010-01-02 15:56:20 +00:00
rubidium
53916ac770
(svn r18688) -Cleanup: remove some unused code/constants
2010-01-02 15:52:41 +00:00
rubidium
2f29975421
(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
3de085a143
(svn r18683) -Fix: it's not an other
2010-01-01 18:45:40 +00:00
peter1138
a70af30250
(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
b224e62d19
(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
6baaea23de
(svn r18522) -Feature: add the possibility to not make new tree tiles in-game
2009-12-17 16:59:33 +00:00
rubidium
e62a56e0f4
(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
25d04c0777
(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
5d6df7a8fd
(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
899b3db66b
(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
0fed86a779
(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
e4dd60d428
(svn r18388) -Codechange: move entering/leaving of road stops to functions of RoadStop
2009-12-02 23:53:15 +00:00
rubidium
6278f0b8a9
(svn r18385) -Cleanup: remove the now unneeded multistop slot management code
2009-12-02 18:18:56 +00:00
rubidium
c0def29c99
(svn r18384) -Fix (r18351): attempt to 'work around' MSVC's IMO stupid warning
2009-12-02 18:14:34 +00:00
rubidium
4ddbe1793e
(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
0f7cee89d8
(svn r18377) -Codechange: add 'cache' of the tile area of truck and bus stops.
2009-12-02 16:20:44 +00:00
rubidium
2f3053508d
(svn r18364) -Codechange: move the pathfinders and their related files into a separate directory
2009-12-01 22:45:39 +00:00
rubidium
cbb87c41d5
(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
a32968e17e
(svn r18351) -Fix [FS#3333]: endianness issue with saving the zoom level
2009-11-30 11:29:52 +00:00
rubidium
da30e736ca
(svn r18330) -Cleanup: remove some unneeded includes
2009-11-28 20:35:25 +00:00
rubidium
bd9c679873
(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
f7466979b9
(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
7ddb16d90e
(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
224f4e0197
(svn r18028) -Codechange: unglobalise some functions
2009-11-09 10:40:33 +00:00
rubidium
b2d7edddfa
(svn r18027) -Codechange: make some unneededly global variables static and remove some unused variables
2009-11-09 09:59:35 +00:00
frosch
d6e65fc173
(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
318c2fad7c
(svn r17963) -Codechange: some documentation style
2009-11-03 17:30:08 +00:00
alberth
a66c2b8978
(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
5a97b64d73
(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
d956d05024
(svn r17908) -Fix [FS#3288]: uninitialised values in some paths of loading TTO savegames
2009-10-30 23:24:17 +00:00
rubidium
f656dd4cf3
(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
618f0cdae3
(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
c0efafc52d
(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
079b7fa034
(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
fe575367f9
(svn r17813) -Codechange: unify the CargoPacket related coding style
2009-10-19 09:15:47 +00:00
rubidium
ef38feefda
(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
93cc3e6106
(svn r17806) -Codechange: split CargoPacket's 'afterload' to a separate function
2009-10-18 17:47:38 +00:00
rubidium
e553983e39
(svn r17800) -Codechange: first steps into making CargoList a template
2009-10-18 14:28:26 +00:00
rubidium
96d098e120
(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
10428de7a3
(svn r17727) -Codechange: some coding style and documentation fixes
2009-10-06 19:52:27 +00:00
rubidium
ec3a0dc064
(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
982b8ee5fc
(svn r17693) -Cleanup: remove some unneeded includes
2009-10-04 17:16:41 +00:00
rubidium
dd01e6196a
(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
a9d0dde464
(svn r17597) -Codechange: rename namegen* to townname*
2009-09-21 11:01:16 +00:00
smatz
f85b8c4e09
(svn r17596) -Codechange: constify some tables
2009-09-20 23:11:01 +00:00
smatz
c3a80f1518
(svn r17589) -Codechange: rename town_acc to always_accepted
2009-09-20 17:44:33 +00:00
rubidium
2e5596025c
(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
310465da07
(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
4db98357ea
(svn r17552) -Codechange: rename load_unload_time_rem to something more generic as it's used for more than just load/unload. Also add some documentation about where it is used.
2009-09-15 20:58:44 +00:00
rubidium
989f53b9dd
(svn r17535) -Fix: compiling without networking failed; also unhackify the crash logger a bit.
2009-09-14 15:53:19 +00:00
rubidium
10c3af4642
(svn r17493) -Codechange: store the depot index on the map
2009-09-10 14:33:07 +00:00
rubidium
4fef835e52
(svn r17492) -Codechange: don't store the town index for road depots.
2009-09-10 14:27:43 +00:00
yexo
39286cd325
(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
5d622fd840
(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
64f5f1d02c
(svn r17433) -Codechange: Store cumulated inflation in savegame and compute all prices from that instead of storing all prices separately.
...
Note: Savegame conversion computes the inflation from max loan. Prices from modified savegames will get lost. TTO savegames will also behave slightly different.
-Change: NewGRF price modifiers now take effect everytime when loading NewGRFs instead of once on gamestart.
2009-09-06 18:53:57 +00:00
smatz
7dd7f622cd
(svn r17431) -Fix (r16735): oldloader wasn't updated
2009-09-06 16:36:22 +00:00
smatz
d0beb1721e
(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
d3b8de0162
(svn r17419) -Fix (r-old, r16378): the index of orders loaded from old savegames was owerwritten with an unitialized value, causing asserts. The issue has present for a long time but only since the new pool system did it trigger a (correct) assert
2009-09-04 22:25:12 +00:00
yexo
d963a44d3a
(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
c1fe2ce4bc
(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
d1b0754bbf
(svn r17340) -Fix: old loader tried to load a uint8 into a uint16
2009-09-01 12:14:57 +00:00
rubidium
533e3da493
(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
09e1ecc8ac
(svn r17316) -Codechange: use Industry::GetByTile() instead of GetIndustryByTile()
2009-08-30 11:47:41 +00:00
yexo
8a2e1011b2
(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
6aa9ebd85a
(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
99d46e0ad7
(svn r17248) -Fix: add GPL license notice where appropriate
2009-08-21 20:21:05 +00:00
rubidium
c096e3d54c
(svn r17228) -Codechange: some coding style fixes
2009-08-20 10:23:39 +00:00
rubidium
5e40d05c51
(svn r17216) -Update: MiniLZO from 1.08 to 2.03.
2009-08-18 22:26:38 +00:00
yexo
e0d2b2ddaa
(svn r17215) -Cleanup: remove unused return value
2009-08-18 20:36:56 +00:00
rubidium
48e1a54c58
(svn r17212) -Change: move minilzo to its 'own' 3rdparty directory as it belongs there
2009-08-18 17:49:28 +00:00
rubidium
dcea681cbb
(svn r17138) -Fix: some MSVC 64 bits compiler warnings
2009-08-09 19:06:35 +00:00
smatz
d59b687f65
(svn r17124) -Codechange: store subsidies in a pool (instead of an array)
2009-08-08 20:53:36 +00:00
smatz
0f1a07d185
(svn r17119) -Codechange: replace constants in subsidy.cpp by enum values
2009-08-08 18:26:25 +00:00
smatz
0502a6df42
(svn r17113) -Change [FS#265][FS#2094][FS#2589]: apply the subsidy when subsidy's destination is in station's catchment area and cargo packets originate from subsidy's source
...
-Change [FS#1134]: subsidies aren't bound to stations after awarding anymore, they still apply to town or industry, no matter what station is used for loading and unloading. Awarded subsidies from older savegames are lost
-Change [NoAI]: due to these changes, AISubsidy::GetSource and AISubsidy::GetDestination now return STATION_INVALID for awarded subsidies
2009-08-08 16:42:55 +00:00
smatz
738d7fde53
(svn r17107) -Codechange: store type of subsidy source and destination in the Subsidy struct instead of determining it every time it's needed
2009-08-07 22:23:34 +00:00
rubidium
e918be12f2
(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
2009-08-06 22:00:32 +00:00
rubidium
d61be2637e
(svn r17075) -Codechange: rename ~750 strings to be more uniform with their relatives
2009-08-05 17:59:21 +00:00
smatz
98bc2e8d2b
(svn r17069) -Fix (r17004): invalid read when converting old waypoints
2009-08-05 14:12:39 +00:00
rubidium
a1e60a0085
(svn r17004) -Fix (r16909): StationRect of loading buoys/waypoints wasn't correctly set when loading 'old' games.
2009-07-31 19:04:22 +00:00
rubidium
1ab2d22318
(svn r16993) -Change: make the rail waypoint builder draggable
2009-07-30 17:44:13 +00:00
rubidium
34cb882127
(svn r16988) -Codechange: unify the code for removing (parts of) stations and waypoints
2009-07-29 22:09:05 +00:00
rubidium
66bca52949
(svn r16962) -Codechange: more work towards multi tile waypoints
2009-07-26 16:17:49 +00:00
rubidium
58563eafa7
(svn r16947) -Codechange: use TileArea instead of train_tile, trainst_w and trainst_h.
2009-07-25 08:54:19 +00:00
rubidium
c02c85d645
(svn r16944) -Codechange: remove needlessly complex way of getting the offset of items within a struct that are within a struct
2009-07-24 19:09:48 +00:00
rubidium
196856f54e
(svn r16939) -Codechange: s/RailwayStation/RailStation/ to unify the way it's written.
2009-07-24 11:47:12 +00:00
rubidium
00a9b2fd3d
(svn r16938) -Codechange: introduce helper function to tell whether a tile is either a rail station or rail waypoint tile
2009-07-24 11:15:11 +00:00
rubidium
01eabc5f4c
(svn r16921) -Codechange: make it more clear what strings are related to road vehicles; only ROAD isn't always enough. Also unify the way of writing it.
2009-07-22 22:44:56 +00:00
rubidium
c252e18421
(svn r16917) -Codechange: fix some GCC 4.5 'case X is not in enum Y' warnings
2009-07-22 16:56:36 +00:00
smatz
1fcd3293c4
(svn r16916) -Fix (r16909): station acceptance was reset after game load
2009-07-22 15:10:58 +00:00
rubidium
6435dc89fe
(svn r16912) -Codechange: split waypoint.h in waypoint_base.h and waypoint_func.h
2009-07-22 10:18:19 +00:00
rubidium
100cb17fa8
(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.
2009-07-22 08:59:57 +00:00
rubidium
9eaee690bc
(svn r16908) -Codechange: s/DepotWaypointReservation/DepotReservation/
2009-07-22 08:52:41 +00:00
rubidium
1dda60343f
(svn r16900) -Codechange: prepare the waypoint window for buoys
2009-07-21 16:30:01 +00:00
rubidium
4d3072ec67
(svn r16897) -Codechange: use the 'generic' station spec to station allocation for waypoints too
2009-07-21 11:20:34 +00:00
smatz
3564579dc4
(svn r16877) -Codechange: use Subsidy::IsAwarded() instead of testing subsidy's age
2009-07-18 19:54:35 +00:00
rubidium
b4f5a1eebb
(svn r16868) -Codechange: unify UpdateAll[Station|Waypoint]VirtCoords
2009-07-18 08:41:58 +00:00
rubidium
a475a81706
(svn r16862) -Codechange: make waypoints use the same system of station station spec lists.
2009-07-17 20:40:29 +00:00
rubidium
0e6b735b45
(svn r16860) -Codechange: introduce a helper to assign a station spec to Waypoints
2009-07-17 20:21:24 +00:00
smatz
0b4b9dd764
(svn r16857) -Fix [FS#3036](r16652): crash when train partially in depot crashed
2009-07-17 13:54:06 +00:00
rubidium
70bf10b34a
(svn r16855) -Codechange: remove unused 'conversion' stuff from the waypoint struct and make it more similar to Station.
2009-07-16 23:02:39 +00:00
rubidium
9b879dc988
(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.
2009-07-16 22:58:06 +00:00
rubidium
8f4ad741aa
(svn r16851) -Codechange: use StationSpecList in waypoint too
2009-07-16 20:29:08 +00:00
rubidium
5a38d8e007
(svn r16850) -Codechange: unify some naming of variables between waypoints and stations.
2009-07-16 20:15:28 +00:00
smatz
8718babe90
(svn r16849) -Codechange: replace GetCargo() by CargoSpec::Get()
2009-07-16 19:00:13 +00:00
rubidium
e39646d93b
(svn r16841) -Cleanup: spaces/tabs where they don't belong
2009-07-16 10:01:32 +00:00
rubidium
79deeee323
(svn r16821) -Codechange: unify the naming of type::UpdateVirtCoord and UpdateAll[Type]VirtCoords.
2009-07-13 22:33:25 +00:00
smatz
64de470917
(svn r16814) -Codechange: make IsNormalAircraft() member of Aircraft
2009-07-13 16:37:27 +00:00
smatz
2de68b2894
(svn r16809) -Fix [FS#3021](r13096): automatic resizing of SelectCompanyLiveryWindow wasn't working as expected
2009-07-13 12:00:56 +00:00
smatz
2185ab8656
(svn r16808) -Fix (r16338): don't crash when loading savegame with invalid references
2009-07-13 11:09:02 +00:00
rubidium
026f3c8feb
(svn r16785) -Codechange: make ships going to buoys use OT_GOTO_WAYPOINT too
2009-07-10 18:30:02 +00:00
rubidium
e56535fda5
(svn r16735) -Codechange: had_vehicle_of_type only stored 7 bits, all less that bit 7... but it was a word wasting space etc.
2009-07-04 11:24:25 +00:00
smatz
32bf91aa41
(svn r16723) -Codechange: make GetNextArticPart(), GetLastEnginePart(), GetNextVehicle(), GetPrevVehicle(), GetNextUnit(), GetPrevUnit() members of Train
2009-07-02 12:10:39 +00:00
rubidium
18fbe0aac4
(svn r16722) -Codechange: unify the naming of the Is/Set/HasArticulatedPart functions
2009-07-02 09:06:15 +00:00
rubidium
f97bd41ed4
(svn r16721) -Codechange: make Is/SetRoadVehicleFront, Is/Set/HasArticulatedPart member of RoadVehicle.
2009-07-02 08:59:27 +00:00
smatz
9b10bc9cdf
(svn r16720) -Codechange: make Set/ClearFrontEngine(), Set/ClearArticulatedPart(), Set/ClearWagon(), Set/ClearEngine(), Set/ClearFreeWagon() and Set/ClearMultiheaded() members of Train
2009-07-02 00:17:27 +00:00
smatz
1e1f0ab2cf
(svn r16719) -Codechange: make IsArticulatedPart(), IsTrainEngine(), IsTrainWagon(), IsMultiheaded(), EngineHasArticPart() and IsRearDualheaded() members of Train
2009-07-01 23:57:20 +00:00
smatz
378d01f2f4
(svn r16718) -Codechange: make IsFreeWagon() member of Train
2009-07-01 23:49:13 +00:00
smatz
20fedeb3d6
(svn r16717) -Codechange: make IsFrontEngine() member of Train
2009-07-01 22:22:01 +00:00
smatz
fe57925910
(svn r16715) -Codechange: add attribute to assert_compile(), so it doesn't warn when used inside function
2009-07-01 21:29:03 +00:00
smatz
93557ba4e9
(svn r16714) -Codechange: use pool-like accessors for Subsidy
2009-07-01 18:45:05 +00:00
smatz
d04750ff87
(svn r16711) -Codechange: use FOR_ALL_SUBSIDIES macro when iterating over all subsidies
2009-07-01 17:43:26 +00:00
smatz
5a227bffdc
(svn r16710) -Fix: invalidate subsidies with invalid source or destination when converting older savegames
2009-07-01 15:08:43 +00:00
rubidium
3b44f44287
(svn r16709) -Fix [FS#2994]: the list of animated tiles could have duplicates (only for old savegames) and tiles that weren't animated
2009-07-01 14:51:05 +00:00
rubidium
4f99508114
(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.
2009-06-29 19:55:36 +00:00
smatz
0e5af86ead
(svn r16666) -Codechange: replace GetHouseSpecs() by HouseSpec::Get(), hide _house_specs[]
2009-06-26 14:02:27 +00:00
smatz
7b78bae8e7
(svn r16665) -Codechange: replace GetTownByTile() by Town::GetByTile()
2009-06-26 13:46:23 +00:00
smatz
d39c08fd9d
(svn r16664) -Codechange: move house-related stuff from town.h and town_type.h to separate files
2009-06-26 13:44:14 +00:00
smatz
72bee4ad2d
(svn r16654) -Codechange: cache industries in station's coverage area instead of searching them everytime payment is made
2009-06-25 15:42:03 +00:00
yexo
210c61bef7
(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.
2009-06-24 23:34:30 +00:00
smatz
f6a4d61cca
(svn r16643) -Codechange: replace GetStationByTile() by Station::GetByTile()
2009-06-24 17:39:54 +00:00
smatz
61a42f42c1
(svn r16640) -Codechange: move roadstop stuff to separate files
2009-06-23 21:44:48 +00:00
smatz
45312433b6
(svn r16632) -Codechange: rename Town::flags12 to Town::flags
2009-06-23 09:52:26 +00:00
smatz
f733d75dad
(svn r16631) -Fix (r1826)(r1881)(r9613): loading of some town data from old savegames was broken
2009-06-23 09:46:29 +00:00
smatz
717248b0d8
(svn r16596) -Fix (r16378): there were several hundreds of empty signs above tile 0 after loading TTO/TTD savegame
2009-06-18 18:13:38 +00:00
rubidium
11c7c258dd
(svn r16586) -Codechange: don't store lifelength in the savegame; it can easily be calculated, it isn't used often and now changing extend_vehicle_life in game has some effect.
2009-06-17 17:13:30 +00:00
rubidium
c09176b0b7
(svn r16572) -Codechange: also catch FPEs in saveload and the warning about missing NewGRFs; only happens when assertions are disabled and NewGRFs are missing.
2009-06-13 12:03:37 +00:00
smatz
a2567c84a0
(svn r16559) -Codechange: introduce Company::IsValidAiID() and Company::IsValidHumanID(), don't use IsHumanCompany() where possible
2009-06-10 22:05:01 +00:00
smatz
ca9787b2ea
(svn r16553) -Codechange: don't use TRACK_BIT_WORMHOLE and TRACK_BIT_DEPOT as bitmasks
2009-06-10 16:02:00 +00:00
smatz
af85994f7f
(svn r16527) -Codechange: use static member functions instead of simple casts when converting Vehicle to specialised vehicle types. Includes safety check
2009-06-06 16:54:22 +00:00
frosch
289e8a7f45
(svn r16525) -Codechange: Notify small ufos on deletion of road vehicles, so they can head for somewhere else instead of stumbling over a ghost.
2009-06-06 14:46:50 +00:00
alberth
580e478e4e
(svn r16491) -Codechange: Added parentheses around bitwise operators for code style.
2009-06-01 11:43:36 +00:00
glx
41b9670bc2
(svn r16446) -Fix (r16378): 'cast to pointer from integer of different size' warning
2009-05-26 23:37:34 +00:00
smatz
e419fe6d3f
(svn r16442) -Codechange: use new Vehicle accessors at more places
2009-05-26 22:45:48 +00:00
smatz
0c53f04c07
(svn r16441) -Codechange: new class SpecializedVehicle used as superclass for all vehicle types
2009-05-26 22:10:13 +00:00
yexo
f044ad6f80
(svn r16439) -Change: Make the default vehicle servicing settings company-based settings, so in a multiplayer game everyone can change them.
2009-05-26 21:59:49 +00:00
rubidium
d39f442bd0
(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)
2009-05-26 15:46:24 +00:00
smatz
bebab3cd79
(svn r16407) -Fix [FS#2913]: set CargoPacket::source to INVALID_STATION when source station is deleted
2009-05-23 19:43:09 +00:00
smatz
1eb48cdded
(svn r16403) -Codechange: move code related to subsidies to separate file
2009-05-23 15:46:00 +00:00
rubidium
cd382b28a3
(svn r16394) -Codechange: move (NewGRF) cache variables into a separate struct so (some vehicle related) NewGRF cache 'desyncs' can be tested easier.
2009-05-23 09:10:56 +00:00
rubidium
4c0542c17f
(svn r16393) -Codechange: move VehicleRail to Train.
2009-05-22 22:55:41 +00:00
rubidium
6350648a6c
(svn r16392) -Codechange: move some variables (the ones that aren't caches) from VehicleRail to Train
2009-05-22 22:33:05 +00:00
rubidium
1324100d69
(svn r16391) -Codechange: use Train instead of Vehicle where appropriate.
2009-05-22 22:22:46 +00:00
rubidium
489253b630
(svn r16390) -Codechange: move u.road to RoadVehicle.
2009-05-22 20:22:20 +00:00
rubidium
1ceb349779
(svn r16389) -Codechange: use RoadVehicle instead of Vehicle where appropriate
2009-05-22 20:18:45 +00:00
rubidium
4ae19b7451
(svn r16388) -Codechange: move u.air to Aircraft
2009-05-22 20:07:26 +00:00
rubidium
1e853b1226
(svn r16387) -Codechange: use Aircraft instead of Vehicle where appropriate
2009-05-22 20:03:26 +00:00
rubidium
d40c61749f
(svn r16385) -Codechange: move u.disaster to DisasterVehicle.
2009-05-22 18:57:11 +00:00
rubidium
521c265282
(svn r16384) -Codechange: move u.effect to EffectVehicle
2009-05-22 18:56:25 +00:00
rubidium
86fc432293
(svn r16382) -Codechange: make GetVehicleTrackdir a member function of Vehicle.
2009-05-22 18:17:20 +00:00
smatz
50624d5c0f
(svn r16378) -Codechange: replace OldPool with simpler Pool. Compilation time, binary size and run time (with asserts disabled) should be improved
2009-05-22 15:13:50 +00:00
smatz
85043a1fb7
(svn r16373) -Codechange: use () instead of (void) for functions without parameters
2009-05-21 22:43:25 +00:00
smatz
af57719513
(svn r16357) -Codechange: delete invalid depots in TTD savegames caused by improper SVXConverter conversions
2009-05-19 12:47:47 +00:00
smatz
fe498e21e7
(svn r16353) -Fix (r1): invalid read when OTTD savegame contains VEH_INVALID
2009-05-18 17:40:03 +00:00
smatz
512db5248e
(svn r16352) -Codechange: use PoolItem::GetIfValid() instead of PoolItem::IsValidID() and PoolItem::Get()
2009-05-18 16:21:28 +00:00
smatz
1eca6aefeb
(svn r16351) -Fix (r14773): signal handler could end in endless loop
2009-05-18 12:01:13 +00:00
smatz
05db91dc65
(svn r16349) -Codechange: rename IsPlainRailTile() to IsPlainRail(), introduce shiny new IsPlainRailTile()
2009-05-18 01:26:23 +00:00
rubidium
d46d1e706e
(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.
2009-05-17 20:38:05 +00:00
smatz
769de62daf
(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
2009-05-17 16:28:29 +00:00
smatz
1287f01872
(svn r16335) -Codechange: indenting fixes in saveload.cpp
2009-05-17 11:47:56 +00:00
smatz
59e1d05995
(svn r16334) -Codechange: use NeedLength enum
2009-05-17 11:43:51 +00:00
smatz
45f9d334fb
(svn r16331) -Codechange: replace _sl.save by an enum
2009-05-17 11:15:11 +00:00
rubidium
b96770ab84
(svn r16330) -Fix (r16329): we were shortly visited by Mr. Kenobi.
2009-05-17 10:59:40 +00:00
rubidium
c0204dc186
(svn r16329) -Fix: possible desync when removing lots of towns in-game (not that we allow removing towns now, but better not have desync prone code lingering around)
2009-05-17 10:35:13 +00:00
rubidium
57a7313ea5
(svn r16328) -Fix: desync when removing lots of stations
2009-05-17 10:19:00 +00:00
smatz
0c10daa243
(svn r16327) -Codechange: replace IsValidPoolItemID(index) by PoolItem::IsValidID(index)
2009-05-17 01:00:56 +00:00
smatz
cf986c3099
(svn r16326) -Codechange: replace GetPoolItemPoolSize() by PoolItem::GetPoolSize()
2009-05-16 23:44:36 +00:00
smatz
d495dc5dbc
(svn r16325) -Codechange: replace GetPoolItem(index) by PoolItem::Get(index)
2009-05-16 23:34:14 +00:00
smatz
3d5ca93674
(svn r16320) -Fix (r11939): loading of savegames created in revision between 0.3.5 and 0.3.6 caused crash
2009-05-16 18:28:31 +00:00
yexo
d489f93473
(svn r16315) -Codechange: move the autorenew settings to a new CompanySettings struct
2009-05-15 23:55:06 +00:00
smatz
ce7dff4acc
(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
2009-05-10 17:27:25 +00:00
rubidium
241af768f0
(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
2009-05-06 15:06:57 +00:00
rubidium
57841b93a4
(svn r16214) -Fix [FS#2878]: shared orders without orders weren't properly converted causing corrupt/invalid orders when loading pre 0.7 savegames.
2009-05-03 11:57:01 +00:00
rubidium
8d3b681b6b
(svn r16133) -Fix (r16129): who would've thought that the saveload system couldn't handle skipping strings on load yet?
2009-04-24 08:15:58 +00:00
rubidium
ca04dc1916
(svn r16129) -Feature-ish: configurable digit group separator per language with user override.
2009-04-23 21:05:00 +00:00
rubidium
5c5b357043
(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.
2009-04-21 23:40:56 +00:00
rubidium
4c707c7414
(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.
2009-04-12 14:11:14 +00:00
glx
ec704b21ca
(svn r15893) -Add: watermark crash.sav and don't generate crash information if a loaded crash.sav causes a crash
2009-03-30 00:21:43 +00:00
peter1138
b23d16d76f
(svn r15799) -Codechange: Save rail type label list to savegame and perform mapping on load if necessary.
2009-03-21 23:58:20 +00:00
smatz
2168f2f4b9
(svn r15727) -Codechange: apply coding style to namegen arrays
...
-Fix (r1307): missing comma in _name_original_english_4
2009-03-15 16:31:16 +00:00
rubidium
c3e87f345d
(svn r15718) -Cleanup: apply some comment coding style on the rest of the sources too
2009-03-15 00:32:18 +00:00
rubidium
f3e0fd7416
(svn r15711) -Codechange: lots of whitespace cleanup/fixes
2009-03-14 18:16:29 +00:00
belugas
aa441cd4d7
(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
2009-03-12 23:54:20 +00:00
rubidium
0ca15db98f
(svn r15678) -Fix (r15676): crash when (re)applying newgrf settings
2009-03-11 23:35:32 +00:00
rubidium
b003536ea8
(svn r15676) -Codechange: remove the need for BeginVehicleMove and merge VehiclePositionChanged and EndVehicleMove.
2009-03-11 20:43:14 +00:00
rubidium
9d0c77b123
(svn r15672) -Codechange: (left,right,top,bottom)_coord -> coord.(left,right,top,bottom), i.e. use Rect.
2009-03-11 17:26:58 +00:00
frosch
959c297fb9
(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.
2009-03-08 16:51:08 +00:00
smatz
f5b24edc1e
(svn r15642) -Codechange: use a default parameter value in CalcClosestTownFromTile
2009-03-08 01:20:11 +00:00
rubidium
34bd9ee636
(svn r15626) -Fix [FS#2698]: UTF8 string handling could cause buffer overruns.
2009-03-06 01:23:25 +00:00
rubidium
a6ca7b8237
(svn r15610) -Change: allow loading of heightmaps and savegames (any form) that are in .tar files
2009-03-04 09:53:31 +00:00
rubidium
9f2a906bc1
(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.
2009-03-02 22:57:47 +00:00
smatz
e7c2479216
(svn r15588) -Fix: change owner of waypoints and deleted stations when merging companies or when a company benkrupts
2009-02-26 14:07:42 +00:00
yexo
b8601d903d
(svn r15584) -Codechange: Move several variables from variables.h to more appropriate headers.
2009-02-25 21:45:14 +00:00
rubidium
1f028894b5
(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.
2009-02-20 21:05:27 +00:00
yexo
5223212624
(svn r15528) -Fix (r15525): Check should be the other way around (thanks SmatZ).
2009-02-20 00:02:25 +00:00
yexo
8d4fed85e9
(svn r15525) -Fix: Don't try to find the AIs the server runs when joining a mp server.
2009-02-19 23:10:32 +00:00
smatz
b83b58dd54
(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
2009-02-16 21:43:44 +00:00
peter1138
4b1728079c
(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...
2009-02-09 22:49:28 +00:00
rubidium
89e1afdaa0
(svn r15428) -Codechange: consistently use colour instead of having both color and colour.
2009-02-09 02:57:15 +00:00
rubidium
66cb1fe1ff
(svn r15423) -Codechange: split widget related types to their own header and add a bit of type strictness.
2009-02-09 01:06:23 +00:00
rubidium
283b3d16ab
(svn r15410) -Cleanup: get rid of most of the references to the 'patches' except where it's used for backward compatability.
2009-02-08 12:25:13 +00:00
peter1138
bf42e60bba
(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.
2009-02-08 10:37:24 +00:00
smatz
3a8d57816a
(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
2009-02-04 20:17:25 +00:00
frosch
4b0223976f
(svn r15304) -Fix [FS#2587]: When loading savegames use the roadtype of the front vehicles just like it is done on construction.
2009-02-01 11:38:18 +00:00
smatz
c71949729e
(svn r15303) -Fix (r12381): desync if a GRF used town's last month max. pass/mail
2009-02-01 00:50:32 +00:00
smatz
9021c20b5e
(svn r15299) -Cleanup: remove many redundant includes
2009-01-31 20:16:06 +00:00
belugas
a57c73e2f9
(svn r15290) -Codechange: Isolate size and section of the UnMovable HQ object, in order to keep the Unmovable type free of any irrelevant data
2009-01-28 19:57:23 +00:00
rubidium
4e0505633d
(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.
2009-01-27 21:51:06 +00:00
smatz
7bc60a19d0
(svn r15274) -Fix (r8705): oldloader wasn't updated to use 64bit airport_flags
2009-01-25 22:50:00 +00:00
peter1138
280fb99f62
(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.
2009-01-25 21:55:18 +00:00
smatz
adb5eac77e
(svn r15257) -Cleanup: remove Company::is_noai, it is not needed anymore
2009-01-24 15:31:48 +00:00
smatz
8654925923
(svn r15256) -Fix (r15027): use of uninitialised variable while saving/loading game with AIs
2009-01-24 15:01:29 +00:00
smatz
aeceef9437
(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)
2009-01-24 12:50:10 +00:00
smatz
6a147caa25
(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)
2009-01-24 00:42:09 +00:00
smatz
59be733b1b
(svn r15248) -Fix [FS#2561]: we require v->cur_speed to be zero for wagons and non-front engines
2009-01-23 23:57:01 +00:00
Yexo
2ce1c074b9
(svn r15239) -Fix [FS#2579]: The start date of random AIs was not stored in the config file or the savegame.
2009-01-23 21:52:29 +00:00
smatz
0e8a5bc908
(svn r15230) -Fix (r1): aircraft could have zero speed while in air after loading old savegame
2009-01-23 15:53:24 +00:00
smatz
bba42dc0fe
(svn r15227) -Fix [FS#2571](r1): aircraft could be 'loading in the air' after converting old savegames
2009-01-23 15:37:44 +00:00
smatz
3126914f36
(svn r15223) -Codechange: move GetOldTownName to oldloader_sl.cpp as it is specific to loading of TTO/TTD savegames
2009-01-23 13:36:12 +00:00
rubidium
93b8a6fb3e
(svn r15220) -Fix (r15216): signedness warning
2009-01-23 09:47:46 +00:00
Yexo
c4cc8712af
(svn r15219) -Fix (r15216): MSVC failed to find the proper casts.
2009-01-23 09:20:57 +00:00
smatz
f0ff90d71c
(svn r15216) -Feature: native support for Transport Tycoon (Original) savegames. Based on SVXConverter's source code and documentation by Roman Vetter
2009-01-23 02:35:17 +00:00
smatz
50956b4f7a
(svn r15211) -Fix (r15190): loading of TTD savegames was broken
2009-01-22 22:02:05 +00:00
Yexo
e3c69b7c4e
(svn r15190) -Feature: Allow terraforming of the tiles at the edges of the map.
2009-01-21 02:31:55 +00:00
smatz
470437df70
(svn r15189) -Cleanup: remove unused includes
2009-01-21 02:07:56 +00:00
smatz
5c96749471
(svn r15183) -Fix: stand-alone rail tiles with invalid owner were not removed. Also, make the whole check a bit more intelligent.
2009-01-21 00:14:08 +00:00
smatz
8c07295dad
(svn r15181) -Fix (r15180): of course it is enough to update aircraft once...
2009-01-20 23:48:31 +00:00
smatz
f8ef801281
(svn r15180) -Fix [FS#2560](r8498): old aircraft have to be updated after updating airport_type of oil rigs
2009-01-20 23:43:19 +00:00
smatz
15e783afa0
(svn r15179) -Fix [FS#2560](r12096): removing of leftover level crossings (from very old savegames) failed
2009-01-20 22:33:29 +00:00
smatz
8d3f0dee85
(svn r15174) -Codechange: split oldloader.cpp
2009-01-20 16:47:42 +00:00
smatz
d6b7c11dd9
(svn r15173) -Codechange: shuffle a few lines of code in oldloader.cpp
2009-01-20 16:40:19 +00:00
smatz
6e6bab2b45
(svn r15170) -Fix: vehicle value is 64bit now, oldloader was reading it as 32bit
2009-01-20 15:43:17 +00:00
smatz
2a2aa282e5
(svn r15169) -Revert (r11271): it was broken by r12924, and the issue is fixed again in r12948 in a cleaner way
2009-01-20 15:23:58 +00:00
smatz
5dc32bb262
(svn r15168) -Codechange: use only really basic map accessors in oldloader.cpp, shuffle the code a bit
2009-01-20 14:47:17 +00:00
smatz
e7af36ae79
(svn r15166) -Codechange: reduce number of includes in afterload.cpp
2009-01-20 13:56:35 +00:00
rubidium
202aeb8306
(svn r15158) -Cleanup: remove some unused/unneeded cruft from the thread generalisation.
2009-01-20 03:12:46 +00:00
Yexo
e84ff99a8b
(svn r15148) -Cleanup: Remove the options "competitor start time" and "competitor intelligence" from the difficulty options because they already were unused.
2009-01-19 01:16:50 +00:00
glx
80af9b446a
(svn r15147) -Fix (r15146): compile before commit
2009-01-19 00:53:31 +00:00
smatz
a7fc02a900
(svn r15146) -Fix: show savegame name even when opening it failed
2009-01-18 23:33:57 +00:00
smatz
14834e67cb
(svn r15145) -Fix: crash when one tried to load a TTO savegame
...
-Fix (r15144): it wasn't safe at all, but the code broken code isn't needed anymore
2009-01-18 23:26:38 +00:00
smatz
575a3a4563
(svn r15144) -Codechange: make sure we don't run out of bounds while determining old savegame name
...
Note this can't happen in current code
2009-01-18 22:44:53 +00:00
smatz
9cc64bfa21
(svn r15137) -Fix (r11822)(r14340): signs with sign 'Sign' were lost when converting from TTD savegames
2009-01-18 16:20:04 +00:00
smatz
bd14084f40
(svn r15116) -Fix (r1): company money weren't correctly converted from TTD(P) savegames
2009-01-16 21:50:55 +00:00
smatz
ca45774160
(svn r15077) -Codechange: enumify DAYS_IN_YEAR and DAYS_IN_LEAP_YEAR
...
-Change: when computing daily running cost, divide by 365 (instead of 364). Since r12134, the rounding errors don't need this correction anymore
2009-01-13 22:58:03 +00:00
truebrain
e05d2ef453
(svn r15075) -Fix: store _next_competitor_start as uint32, else it might overflow for values > 2.4 years
2009-01-13 21:32:47 +00:00
truebrain
5573d9a459
(svn r15045) -Add [NoAI API CHANGE]: in info.nut you can now have (optional) a CanLoadFromVersion(version), which should return true/false, to indicate if you can load a savegame made with your AI of version 'version'
...
-Add [NoAI API CHANGE]: in main.nut the Load() function now should be Load(version, data), where 'version' is the version of your AI which made the savegame
-Codechange [NoAI]: various of function renames to make things more sane
-Add [NoAI]: push the 'version' of the AI through various of layers
-Codechange [NoAI]: various of code cleanups
-Add [NoAI]: store the version of the AI in the savegame too
2009-01-13 01:46:46 +00:00
truebrain
c2406cd42d
(svn r15027) -Merge: tomatos and bananas left to be, here is NoAI for all to see.
...
NoAI is an API (a framework) to build your own AIs in. See:
http://wiki.openttd.org/wiki/index.php/AI:Main_Page
With many thanks to:
- glx and Rubidium for their syncing, feedback and hard work
- Yexo for his feedback, patches, and AIs which tested the system very deep
- Morloth for his feedback and patches
- TJIP for hosting a challenge which kept NoAI on track
- All AI authors for testing our AI API, and all other people who helped in one way or another
-Remove: all old AIs and their cheats/hacks
2009-01-12 17:11:45 +00:00