summaryrefslogtreecommitdiff
path: root/tile.h
diff options
context:
space:
mode:
authortron <tron@openttd.org>2005-10-05 07:20:26 +0000
committertron <tron@openttd.org>2005-10-05 07:20:26 +0000
commit39f5dbfd3b22f24120c63c09433415cdde023bc6 (patch)
tree8281c38dbbb38386dacf57d352e00b62be0edc77 /tile.h
parent6687d63add08a36f7366764fa2482270e8d7a80e (diff)
downloadopenttd-39f5dbfd3b22f24120c63c09433415cdde023bc6.tar.xz
(svn r3019) -Codechange: Replace explicit shifting/anding/oring with GB and SB
Diffstat (limited to 'tile.h')
-rw-r--r--tile.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/tile.h b/tile.h
index 11607ce39..c12bf974e 100644
--- a/tile.h
+++ b/tile.h
@@ -99,7 +99,7 @@ static inline bool IsTileType(TileIndex tile, TileType type)
static inline bool IsTunnelTile(TileIndex tile)
{
- return IsTileType(tile, MP_TUNNELBRIDGE) && (_m[tile].m5 & 0xF0) == 0;
+ return IsTileType(tile, MP_TUNNELBRIDGE) && GB(_m[tile].m5, 4, 4) == 0;
}
static inline Owner GetTileOwner(TileIndex tile)