mirror of
https://github.com/JGRennison/OpenTTD-patches.git
synced 2024-11-16 00:12:51 +00:00
(svn r13488) -Fix (r13485): track wasn't removed on company bankrupcy when there was a ship on lower halftile
This commit is contained in:
parent
43622f95e1
commit
39b397438c
@ -1382,7 +1382,8 @@ static CommandCost ClearTile_Track(TileIndex tile, byte flags)
|
|||||||
cost.AddCost(ret);
|
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;
|
if (!EnsureNoVehicleOnGround(tile)) return CMD_ERROR;
|
||||||
|
|
||||||
/* The track was removed, and left a coast tile. Now also clear the water. */
|
/* The track was removed, and left a coast tile. Now also clear the water. */
|
||||||
|
Loading…
Reference in New Issue
Block a user