mirror of
https://github.com/OpenTTD/OpenTTD.git
synced 2025-08-16 11:09:11 +00:00
(svn r14290) -Fix (r13932): level crossings could be barred when they shouldn't be after savegame conversion
This commit is contained in:
@@ -2342,9 +2342,6 @@ bool AfterLoadGame()
|
|||||||
|
|
||||||
if (CheckSavegameVersion(86)) {
|
if (CheckSavegameVersion(86)) {
|
||||||
for (TileIndex t = 0; t < map_size; t++) {
|
for (TileIndex t = 0; t < map_size; t++) {
|
||||||
/* Now all crossings should be in correct state */
|
|
||||||
if (IsLevelCrossingTile(t)) UpdateLevelCrossing(t, false);
|
|
||||||
|
|
||||||
/* Move river flag and update canals to use water class */
|
/* Move river flag and update canals to use water class */
|
||||||
if (IsTileType(t, MP_WATER)) {
|
if (IsTileType(t, MP_WATER)) {
|
||||||
if (GetWaterClass(t) != WATER_CLASS_RIVER) {
|
if (GetWaterClass(t) != WATER_CLASS_RIVER) {
|
||||||
@@ -2545,6 +2542,14 @@ bool AfterLoadGame()
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (CheckSavegameVersion(102)) {
|
||||||
|
for (TileIndex t = 0; t < map_size; t++) {
|
||||||
|
/* Now all crossings should be in correct state */
|
||||||
|
if (IsLevelCrossingTile(t)) UpdateLevelCrossing(t, false);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
GamelogPrintDebug(1);
|
GamelogPrintDebug(1);
|
||||||
|
|
||||||
return InitializeWindowsAndCaches();
|
return InitializeWindowsAndCaches();
|
||||||
|
Reference in New Issue
Block a user