summaryrefslogtreecommitdiff
path: root/src/water_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/water_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/water_cmd.cpp')
-rw-r--r--src/water_cmd.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/water_cmd.cpp b/src/water_cmd.cpp
index 4c5484d24..5f316dac2 100644
--- a/src/water_cmd.cpp
+++ b/src/water_cmd.cpp
@@ -1140,7 +1140,7 @@ static void ChangeTileOwner_Water(TileIndex tile, PlayerID old_player, PlayerID
if (new_player != PLAYER_SPECTATOR) {
SetTileOwner(tile, new_player);
} else if (IsShipDepot(tile)) {
- DoCommand(tile, 0, 0, DC_EXEC, CMD_LANDSCAPE_CLEAR);
+ DoCommand(tile, 0, 0, DC_EXEC | DC_BANKRUPT, CMD_LANDSCAPE_CLEAR);
} else {
SetTileOwner(tile, OWNER_NONE);
}