Add setting for whether water floods from map edges

This commit is contained in:
Jonathan G Rennison
2023-09-28 17:11:02 +01:00
parent aa4aee1d23
commit 8a0fab1d4c
5 changed files with 14 additions and 1 deletions

View File

@@ -1165,7 +1165,7 @@ FloodingBehaviour GetFloodingBehaviour(TileIndex tile)
return (GetObjectGroundType(tile) == OBJECT_GROUND_SHORE ? FLOOD_DRYUP : ((GetWaterClass(tile) == WATER_CLASS_SEA) ? FLOOD_ACTIVE : FLOOD_NONE));
case MP_VOID:
return FLOOD_ACTIVE;
return _settings_game.construction.flood_from_edges ? FLOOD_ACTIVE : FLOOD_NONE;
default:
return FLOOD_NONE;