(svn r3830) Move IsTunnelTile() from tile.h to tunnel_map.h and add IsTunnel(), which just checks for a tunnel, but not the tile type as IsTunnelTile() does
This commit is contained in:
4
tile.h
4
tile.h
@@ -79,10 +79,6 @@ static inline bool IsTileType(TileIndex tile, TileType type)
|
||||
return GetTileType(tile) == type;
|
||||
}
|
||||
|
||||
static inline bool IsTunnelTile(TileIndex tile)
|
||||
{
|
||||
return IsTileType(tile, MP_TUNNELBRIDGE) && GB(_m[tile].m5, 4, 4) == 0;
|
||||
}
|
||||
|
||||
static inline Owner GetTileOwner(TileIndex tile)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user