diff options
-rw-r--r-- | src/rail_cmd.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/rail_cmd.cpp b/src/rail_cmd.cpp index d1ad5853b..7325c8c96 100644 --- a/src/rail_cmd.cpp +++ b/src/rail_cmd.cpp @@ -1382,7 +1382,8 @@ static CommandCost ClearTile_Track(TileIndex tile, byte flags) cost.AddCost(ret); } - if (water_ground) { + /* when bankrupting, don't make water dirty, there could be a ship on lower halftile */ + if (water_ground && !(flags & DC_BANKRUPT)) { if (!EnsureNoVehicleOnGround(tile)) return CMD_ERROR; /* The track was removed, and left a coast tile. Now also clear the water. */ |