Change: Allow all tiles around docks to be docking tiles (#9578)

This commit is contained in:
Loïc Guilloux
2021-09-26 19:31:55 +02:00
committed by GitHub
parent 11dece205c
commit 38a64eb2aa
3 changed files with 8 additions and 15 deletions

View File

@@ -3106,14 +3106,14 @@ bool AfterLoadGame()
}
}
if (IsSavegameVersionBeforeOrAt(SLV_ENDING_YEAR)) {
/* Update station docking tiles. Was only needed for pre-SLV_MULTITLE_DOCKS
* savegames, but a bug in docking tiles touched all savegames between
* SLV_MULTITILE_DOCKS and SLV_ENDING_YEAR. */
if (IsSavegameVersionBefore(SLV_DOCK_DOCKINGTILES)) {
/* All tiles around docks may be docking tiles. */
for (Station *st : Station::Iterate()) {
if (st->ship_station.tile != INVALID_TILE) UpdateStationDockingTiles(st);
}
}
if (IsSavegameVersionBeforeOrAt(SLV_ENDING_YEAR)) {
/* Reset roadtype/streetcartype info for non-road bridges. */
for (TileIndex t = 0; t < map_size; t++) {
if (IsTileType(t, MP_TUNNELBRIDGE) && GetTunnelBridgeTransportType(t) != TRANSPORT_ROAD) {