(svn r12094) -Codechange: use DC_BANKRUPT command flag when removing player property to allow further fixes

This commit is contained in:
smatz
2008-02-09 15:07:31 +00:00
parent 221494bd3f
commit 802c949755
7 changed files with 11 additions and 9 deletions

View File

@@ -1181,7 +1181,7 @@ static void ChangeTileOwner_TunnelBridge(TileIndex tile, PlayerID old_player, Pl
if (new_player != PLAYER_SPECTATOR) {
SetTileOwner(tile, new_player);
} else {
if (CmdFailed(DoCommand(tile, 0, 0, DC_EXEC, CMD_LANDSCAPE_CLEAR))) {
if (CmdFailed(DoCommand(tile, 0, 0, DC_EXEC | DC_BANKRUPT, CMD_LANDSCAPE_CLEAR))) {
/* When clearing the bridge/tunnel failed there are still vehicles on/in
* the bridge/tunnel. As all *our* vehicles are already removed, they
* must be of another owner. Therefor this must be a road bridge/tunnel.