diff options
author | smatz <smatz@openttd.org> | 2007-12-16 15:38:51 +0000 |
---|---|---|
committer | smatz <smatz@openttd.org> | 2007-12-16 15:38:51 +0000 |
commit | 3cee0abdbaf6c867ca71fec4700823f545556936 (patch) | |
tree | 3adebd2b8c9a10a6d993c67b0b5920b3598f2bce /src/smallmap_gui.cpp | |
parent | ec90ce7e98b29371b0fb139256065ac9991ca289 (diff) | |
download | openttd-3cee0abdbaf6c867ca71fec4700823f545556936.tar.xz |
(svn r11644) -Codechange: merge some functions from tunnel_map.h and bridge_map.h into tunnelbridge_map.h
Diffstat (limited to 'src/smallmap_gui.cpp')
-rw-r--r-- | src/smallmap_gui.cpp | 6 |
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; |