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 | ae4a1f3675bab50b93e443dcca07fd297fcdc58d (patch) | |
tree | 8281c38dbbb38386dacf57d352e00b62be0edc77 /tile.h | |
parent | 102cf2615f8ffb4e260680a5f2b3b7d9f2a7a130 (diff) | |
download | openttd-ae4a1f3675bab50b93e443dcca07fd297fcdc58d.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) |