summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDarkvater <darkvater@openttd.org>2005-06-09 13:54:08 +0000
committerDarkvater <darkvater@openttd.org>2005-06-09 13:54:08 +0000
commit65a00ea7544278ca6956c7da3d9ace82d862a3b0 (patch)
tree47a4ba77a6fec69fec4d26661fa6f4849c5464b1
parent9ec944003b148227650383285cbdc201248a10d9 (diff)
downloadopenttd-65a00ea7544278ca6956c7da3d9ace82d862a3b0.tar.xz
(svn r2436) - Fix: Deleting canals under bridges removes bridges first in certain configurations (peter1138)
-rw-r--r--tunnelbridge_cmd.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/tunnelbridge_cmd.c b/tunnelbridge_cmd.c
index 1aa5a4935..51c71b20b 100644
--- a/tunnelbridge_cmd.c
+++ b/tunnelbridge_cmd.c
@@ -717,7 +717,7 @@ static int32 DoClearBridge(uint tile, uint32 flags)
return cost;
/* delete canal under bridge */
- } else if(_map5[tile] == 0xC8 && TilePixelHeight(tile) != 0) {
+ } else if ((_map5[tile] & 0xC8) == 0xC8 && TilePixelHeight(tile) != 0) {
int32 cost;
// check for vehicles under bridge