forked from mirror/OpenTTD
(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:
@@ -348,10 +348,10 @@ static inline TileType GetEffectiveTileType(TileIndex tile)
|
||||
if (t == MP_TUNNELBRIDGE) {
|
||||
TransportType tt;
|
||||
|
||||
if (_m[tile].m5 & 0x80) {
|
||||
tt = GB(_m[tile].m5, 1, 2);
|
||||
} else {
|
||||
if (IsTunnel(tile)) {
|
||||
tt = GetTunnelTransportType(tile);
|
||||
} else {
|
||||
tt = GB(_m[tile].m5, 1, 2);
|
||||
}
|
||||
switch (tt) {
|
||||
case TRANSPORT_RAIL: t = MP_RAILWAY; break;
|
||||
|
Reference in New Issue
Block a user