summaryrefslogtreecommitdiff
path: root/src/smallmap_gui.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/smallmap_gui.cpp')
-rw-r--r--src/smallmap_gui.cpp6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/smallmap_gui.cpp b/src/smallmap_gui.cpp
index bb2ee28bb..638a43322 100644
--- a/src/smallmap_gui.cpp
+++ b/src/smallmap_gui.cpp
@@ -28,6 +28,8 @@
#include "sound.h"
#include "variables.h"
#include "blitter/factory.hpp"
+#include "tunnelbridge_map.h"
+
static const Widget _smallmap_widgets[] = {
{ WWT_CLOSEBOX, RESIZE_NONE, 13, 0, 10, 0, 13, STR_00C5, STR_018B_CLOSE_WINDOW},
@@ -340,9 +342,9 @@ static inline TileType GetEffectiveTileType(TileIndex tile)
TransportType tt;
if (IsTunnel(tile)) {
- tt = GetTunnelTransportType(tile);
+ tt = GetTunnelBridgeTransportType(tile);
} else {
- tt = GetBridgeTransportType(tile);
+ tt = GetTunnelBridgeTransportType(tile);
}
switch (tt) {
case TRANSPORT_RAIL: t = MP_RAILWAY; break;