src/rail_cmd.cpp
changeset 10935 cdbe711bd2ae
parent 10932 379576f9f8d5
child 11009 8dcebd74faca
--- 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. */