# HG changeset patch # User smatz # Date 1213278007 0 # Node ID ee2e42e74f2379fe094be26f452668a863d1bd54 # Parent b45f1056d60b6facdf9eed93e8bde1b0e644c27f (svn r13488) -Fix (r13485): track wasn't removed on company bankrupcy when there was a ship on lower halftile diff --git a/src/rail_cmd.cpp b/src/rail_cmd.cpp --- a/src/rail_cmd.cpp +++ b/src/rail_cmd.cpp @@ -1382,7 +1382,8 @@ 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. */