(svn r25152) -Fix-ish [FS#5520]: remove stray reservation from savegames affected by FS#5510 et al. upon loading

This commit is contained in:
rubidium 2013-04-06 18:30:45 +00:00
parent f1d90c619c
commit 7aefa8527c

View File

@ -2770,6 +2770,14 @@ bool AfterLoadGame()
v->acceleration = avi->acceleration;
}
}
/* Blocked tiles could be reserved due to a bug, which causes
* other places to assert upon e.g. station reconstruction. */
for (TileIndex t = 0; t < map_size; t++) {
if (HasStationTileRail(t) && IsStationTileBlocked(t)) {
SetRailStationReservation(t, false);
}
}
}
/* Road stops is 'only' updating some caches */