diff options
author | Darkvater <Darkvater@openttd.org> | 2005-06-09 13:54:08 +0000 |
---|---|---|
committer | Darkvater <Darkvater@openttd.org> | 2005-06-09 13:54:08 +0000 |
commit | 6e052ccca21aa1abd40f0e3d49aecd06e3f1abed (patch) | |
tree | 47a4ba77a6fec69fec4d26661fa6f4849c5464b1 | |
parent | 5f46f6bd25adb67ca46938b0b55fb181e5fd8856 (diff) | |
download | openttd-6e052ccca21aa1abd40f0e3d49aecd06e3f1abed.tar.xz |
(svn r2436) - Fix: Deleting canals under bridges removes bridges first in certain configurations (peter1138)
-rw-r--r-- | tunnelbridge_cmd.c | 2 |
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 |