summaryrefslogtreecommitdiff
path: root/smallmap_gui.c
diff options
context:
space:
mode:
Diffstat (limited to 'smallmap_gui.c')
-rw-r--r--smallmap_gui.c6
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;