smallmap_gui.c
changeset 3234 986c30171e92
parent 3184 7405329343ce
child 3326 b5ce3e805425
--- a/smallmap_gui.c	Thu Mar 16 13:35:35 2006 +0000
+++ b/smallmap_gui.c	Thu Mar 16 15:16:27 2006 +0000
@@ -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 @@
 		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;