diff options
author | tron <tron@openttd.org> | 2006-03-16 15:16:27 +0000 |
---|---|---|
committer | tron <tron@openttd.org> | 2006-03-16 15:16:27 +0000 |
commit | b8da06ddb11f234451864e0b454163ebb546e4cd (patch) | |
tree | 79a0e9518fd43cbe914bddcaebf4983201598bc8 /smallmap_gui.c | |
parent | d6134455a5aaa7b247545886be573a555cdfc2be (diff) | |
download | openttd-b8da06ddb11f234451864e0b454163ebb546e4cd.tar.xz |
(svn r3907) Replace many bridge related direct map accesses with calls to shiny new functions and mark some strange constructs with XXX
Diffstat (limited to 'smallmap_gui.c')
-rw-r--r-- | smallmap_gui.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/smallmap_gui.c b/smallmap_gui.c index 89732cb95..baa393d7b 100644 --- a/smallmap_gui.c +++ b/smallmap_gui.c @@ -2,6 +2,7 @@ #include "stdafx.h" #include "openttd.h" +#include "bridge_map.h" #include "clear_map.h" #include "functions.h" #include "spritecache.h" @@ -351,7 +352,7 @@ static inline TileType GetEffectiveTileType(TileIndex tile) if (IsTunnel(tile)) { tt = GetTunnelTransportType(tile); } else { - tt = GB(_m[tile].m5, 1, 2); + tt = GetBridgeTransportType(tile); } switch (tt) { case TRANSPORT_RAIL: t = MP_RAILWAY; break; |