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/rail_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/rail_gui.cpp')
-rw-r--r-- | src/rail_gui.cpp | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/src/rail_gui.cpp b/src/rail_gui.cpp index af2a8f25e..6b80ab81b 100644 --- a/src/rail_gui.cpp +++ b/src/rail_gui.cpp @@ -32,6 +32,8 @@ #include "road_map.h" #include "station_map.h" #include "tunnel_map.h" +#include "tunnelbridge_map.h" + static RailType _cur_railtype; static bool _remove_button_clicked; @@ -1523,8 +1525,8 @@ void SetDefaultRailGui() if (IsTileType(t, MP_RAILWAY) || IsLevelCrossingTile(t) || IsRailwayStationTile(t) || - (IsTunnelTile(t) && GetTunnelTransportType(t) == TRANSPORT_RAIL) || - (IsBridgeTile(t) && GetBridgeTransportType(t) == TRANSPORT_RAIL) + (IsTunnelTile(t) && GetTunnelBridgeTransportType(t) == TRANSPORT_RAIL) || + (IsBridgeTile(t) && GetTunnelBridgeTransportType(t) == TRANSPORT_RAIL) ) { count[GetRailType(t)]++; } |