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.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.cpp')
-rw-r--r-- | src/rail.cpp | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/src/rail.cpp b/src/rail.cpp index 8bf83a36a..f3f62175f 100644 --- a/src/rail.cpp +++ b/src/rail.cpp @@ -8,6 +8,8 @@ #include "rail.h" #include "station_map.h" #include "tunnel_map.h" +#include "tunnelbridge_map.h" + /* XXX: Below 3 tables store duplicate data. Maybe remove some? */ /* Maps a trackdir to the bit that stores its status in the map arrays, in the @@ -131,9 +133,9 @@ RailType GetTileRailType(TileIndex tile) case MP_TUNNELBRIDGE: if (IsTunnel(tile)) { - if (GetTunnelTransportType(tile) == TRANSPORT_RAIL) return GetRailType(tile); + if (GetTunnelBridgeTransportType(tile) == TRANSPORT_RAIL) return GetRailType(tile); } else { - if (GetBridgeTransportType(tile) == TRANSPORT_RAIL) return GetRailType(tile); + if (GetTunnelBridgeTransportType(tile) == TRANSPORT_RAIL) return GetRailType(tile); } break; |