From fe6f09e66e489f54e395ef7424b7c3a2f1f7e1f0 Mon Sep 17 00:00:00 2001 From: smatz Date: Thu, 12 Jun 2008 13:40:07 +0000 Subject: (svn r13488) -Fix (r13485): track wasn't removed on company bankrupcy when there was a ship on lower halftile --- src/rail_cmd.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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. */ -- cgit v1.2.3-70-g09d2