diff options
author | tron <tron@openttd.org> | 2006-03-12 15:04:03 +0000 |
---|---|---|
committer | tron <tron@openttd.org> | 2006-03-12 15:04:03 +0000 |
commit | 78083f0da7b7c94eccea15eec397e2afe96da1d5 (patch) | |
tree | fa4485d2814de5612a416a86e22ba7d60ce70f9f /smallmap_gui.c | |
parent | b394f72fa9305094ddf672564a0f4a0c8f16e89b (diff) | |
download | openttd-78083f0da7b7c94eccea15eec397e2afe96da1d5.tar.xz |
(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
Diffstat (limited to 'smallmap_gui.c')
-rw-r--r-- | smallmap_gui.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/smallmap_gui.c b/smallmap_gui.c index cfd3cf737..89732cb95 100644 --- a/smallmap_gui.c +++ b/smallmap_gui.c @@ -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; |