diff options
author | tron <tron@openttd.org> | 2005-10-05 07:20:26 +0000 |
---|---|---|
committer | tron <tron@openttd.org> | 2005-10-05 07:20:26 +0000 |
commit | 39f5dbfd3b22f24120c63c09433415cdde023bc6 (patch) | |
tree | 8281c38dbbb38386dacf57d352e00b62be0edc77 /tile.h | |
parent | 6687d63add08a36f7366764fa2482270e8d7a80e (diff) | |
download | openttd-39f5dbfd3b22f24120c63c09433415cdde023bc6.tar.xz |
(svn r3019) -Codechange: Replace explicit shifting/anding/oring with GB and SB
Diffstat (limited to 'tile.h')
-rw-r--r-- | tile.h | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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) |