# HG changeset patch # User smatz # Date 1213278007 0 # Node ID 58b2ee0f53c9819f5ca6fe0fe681cc40ade47129 # Parent 231e0b6b5b54be4a5929e4d9bc03eb2f0558e745 (svn r13488) -Fix (r13485): track wasn't removed on company bankrupcy when there was a ship on lower halftile diff -r 231e0b6b5b54 -r 58b2ee0f53c9 src/rail_cmd.cpp --- a/src/rail_cmd.cpp Thu Jun 12 11:15:43 2008 +0000 +++ b/src/rail_cmd.cpp Thu Jun 12 13:40:07 2008 +0000 @@ -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. */