tile.h
changeset 2493 d834d0c1502a
parent 2436 177cb6a8339f
child 2900 722c18106949
equal deleted inserted replaced
2492:3f32f9f9fd78 2493:d834d0c1502a
    97 	return GetTileType(tile) == type;
    97 	return GetTileType(tile) == type;
    98 }
    98 }
    99 
    99 
   100 static inline bool IsTunnelTile(TileIndex tile)
   100 static inline bool IsTunnelTile(TileIndex tile)
   101 {
   101 {
   102 	return IsTileType(tile, MP_TUNNELBRIDGE) && (_m[tile].m5 & 0xF0) == 0;
   102 	return IsTileType(tile, MP_TUNNELBRIDGE) && GB(_m[tile].m5, 4, 4) == 0;
   103 }
   103 }
   104 
   104 
   105 static inline Owner GetTileOwner(TileIndex tile)
   105 static inline Owner GetTileOwner(TileIndex tile)
   106 {
   106 {
   107 	assert(tile < MapSize());
   107 	assert(tile < MapSize());