summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authortron <tron@openttd.org>2006-03-16 13:35:35 +0000
committertron <tron@openttd.org>2006-03-16 13:35:35 +0000
commitb2e804561387d4f8714f53c9e61b0b9e396f60e0 (patch)
tree954a5885f32641df300a988f332e7755b1e6c6ad
parent0681895b0347bb30d09652485f04387ca184c4ae (diff)
downloadopenttd-b2e804561387d4f8714f53c9e61b0b9e396f60e0.tar.xz
(svn r3906) Before removing a rail/setting the owner of a road to none check if there's a transport route at all under the bridge
-rw-r--r--tunnelbridge_cmd.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/tunnelbridge_cmd.c b/tunnelbridge_cmd.c
index e89f2795e..6ff5749a8 100644
--- a/tunnelbridge_cmd.c
+++ b/tunnelbridge_cmd.c
@@ -1298,7 +1298,7 @@ static void ChangeTileOwner_TunnelBridge(TileIndex tile, PlayerID old_player, Pl
if (new_player != OWNER_SPECTATOR) {
SetTileOwner(tile, new_player);
} else {
- if ((_m[tile].m5 & 0xC0) == 0xC0) {
+ if ((_m[tile].m5 & 0xE0) == 0xE0) {
// the stuff BELOW the middle part is owned by the deleted player.
if (!(_m[tile].m5 & (1 << 4 | 1 << 3))) {
// convert railway into grass.