summaryrefslogtreecommitdiff
path: root/saveload.c
diff options
context:
space:
mode:
authorpasky <pasky@openttd.org>2005-03-27 00:28:14 +0000
committerpasky <pasky@openttd.org>2005-03-27 00:28:14 +0000
commit0c5d61bd56cb8ec4c2caa8aadb9c397c6931b544 (patch)
treefa4b74ffb1e7fe3ea3fcd1105aa17c0490f7a41c /saveload.c
parente416fe8066a4f959212391333ca4dbec1595e007 (diff)
downloadopenttd-0c5d61bd56cb8ec4c2caa8aadb9c397c6931b544.tar.xz
(svn r2080) - Fix: [OldAI] p->ai.state_counter was uint16 but could hold a tile index, therefore overflowing - changed that to uint32 and bumped the savegame revision to 32. It *MIGHT* close bug 1151374 - it certainly caused AI to stop building anything sometimes.
- While at it, use TileIndex as the tile index type in AiRemovePlayerRailOrRoad() and AiStateRemoveTrack(). - Make the number of tiles scanned 4*MapSizeX() instead of 1000. It *MIGHT* close bug 1116614.
Diffstat (limited to 'saveload.c')
-rw-r--r--saveload.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/saveload.c b/saveload.c
index d436e97f3..e9e504a5c 100644
--- a/saveload.c
+++ b/saveload.c
@@ -8,7 +8,7 @@
#include "saveload.h"
enum {
- SAVEGAME_MAJOR_VERSION = 0xC,
+ SAVEGAME_MAJOR_VERSION = 13,
SAVEGAME_MINOR_VERSION = 0x1,
SAVEGAME_LOADABLE_VERSION = (SAVEGAME_MAJOR_VERSION << 8) + SAVEGAME_MINOR_VERSION