Bump water flooding savegame version and clear states on load

This commit is contained in:
Jonathan G Rennison
2021-04-13 00:08:05 +01:00
parent 1a29a1ee74
commit 6c62bce1ac
2 changed files with 9 additions and 1 deletions

View File

@@ -3903,6 +3903,14 @@ bool AfterLoadGame()
_settings_game.economy.city_zone_4_mult = _settings_game.economy.town_zone_4_mult;
}
if (!SlXvIsFeaturePresent(XSLFI_WATER_FLOODING, 2)) {
for (TileIndex t = 0; t < map_size; t++) {
if (IsTileType(t, MP_WATER)) {
SetNonFloodingWaterTile(t, false);
}
}
}
InitializeRoadGUI();
/* This needs to be done after conversion. */