summaryrefslogtreecommitdiff
path: root/src/tunnelbridge_cmd.cpp
diff options
context:
space:
mode:
authorsmatz <smatz@openttd.org>2008-02-09 15:07:31 +0000
committersmatz <smatz@openttd.org>2008-02-09 15:07:31 +0000
commitd00bf03012ec14e42e96002be248b2365e44f872 (patch)
tree39d675de46311d80d06cf6872b5082be1a1c732f /src/tunnelbridge_cmd.cpp
parenta7b786f143b0a4a8cdf94f9fbea5ed92048760c6 (diff)
downloadopenttd-d00bf03012ec14e42e96002be248b2365e44f872.tar.xz
(svn r12094) -Codechange: use DC_BANKRUPT command flag when removing player property to allow further fixes
Diffstat (limited to 'src/tunnelbridge_cmd.cpp')
-rw-r--r--src/tunnelbridge_cmd.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/tunnelbridge_cmd.cpp b/src/tunnelbridge_cmd.cpp
index 0ea62d5ea..56eca808a 100644
--- a/src/tunnelbridge_cmd.cpp
+++ b/src/tunnelbridge_cmd.cpp
@@ -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.