(svn r11908) -Fix: update crossing when merging a company, when building a crossing and after loading older savegame

This commit is contained in:
smatz
2008-01-17 19:49:06 +00:00
parent 35135222b5
commit 822242f411
6 changed files with 28 additions and 12 deletions

View File

@@ -65,6 +65,7 @@
#include "vehicle_func.h"
#include "sound_func.h"
#include "variables.h"
#include "road_func.h"
#include "bridge_map.h"
#include "clear_map.h"
@@ -2313,6 +2314,13 @@ bool AfterLoadGame()
}
}
if (CheckSavegameVersion(86)) {
/* Now all crossings should be in correct state */
for (TileIndex t = 0; t < map_size; t++) {
if (IsLevelCrossingTile(t)) UpdateLevelCrossing(t);
}
}
return InitializeWindowsAndCaches();
}