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

replace/41b28d7194a279bdc17475d4fbe2ea6ec885a466
rubidium 12 years ago
parent 6772aebbb6
commit aa2c1ce4b0

@ -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 */

Loading…
Cancel
Save