Fix #9591: Update station docking tiles upon placing a water object on a docking tile (#9594)

This commit is contained in:
SamuXarick
2021-10-03 11:54:19 +01:00
committed by GitHub
parent e4ad632989
commit e404d16929
3 changed files with 7 additions and 3 deletions

View File

@@ -3106,8 +3106,8 @@ bool AfterLoadGame()
}
}
if (IsSavegameVersionBefore(SLV_DOCK_DOCKINGTILES)) {
/* All tiles around docks may be docking tiles. */
if (IsSavegameVersionBefore(SLV_REPAIR_OBJECT_DOCKING_TILES)) {
/* Placing objects on docking tiles was not updating adjacent station's docking tiles. */
for (Station *st : Station::Iterate()) {
if (st->ship_station.tile != INVALID_TILE) UpdateStationDockingTiles(st);
}