(svn r1676) Increase the size of TileIndex and TileIndexDiff to 32bits and adapt the save/load data and some other parts of the code to that change

WARNING: If i made any mistake here it WILL lead to corrupted savegames!
This commit is contained in:
tron
2005-01-25 21:43:57 +00:00
parent cb1f1921f6
commit 07cb3068ae
12 changed files with 74 additions and 40 deletions

2
ai.c
View File

@@ -3762,7 +3762,7 @@ static void AiStateRemoveTrack(Player *p)
uint tile = ++p->ai.state_counter;
// Iterated all tiles?
if (tile == 0) {
if (tile >= MapSize()) {
p->ai.state = AIS_REMOVE_STATION;
return;
}