diff -r 5a9dc001e1ad -r 1c4a4a609f85 src/road_map.cpp --- a/src/road_map.cpp Mon Dec 03 23:39:38 2007 +0000 +++ b/src/road_map.cpp Tue Jan 22 21:00:30 2008 +0000 @@ -5,13 +5,13 @@ #include "stdafx.h" #include "openttd.h" #include "bridge_map.h" -#include "functions.h" -#include "landscape.h" +#include "tile_cmd.h" #include "road_map.h" #include "station.h" #include "tunnel_map.h" #include "station_map.h" #include "depot.h" +#include "tunnelbridge_map.h" RoadBits GetAnyRoadBits(TileIndex tile, RoadType rt) @@ -33,13 +33,8 @@ return DiagDirToRoadBits(GetRoadStopDir(tile)); case MP_TUNNELBRIDGE: - if (IsTunnel(tile)) { - if (GetTunnelTransportType(tile) != TRANSPORT_ROAD) return ROAD_NONE; - return DiagDirToRoadBits(ReverseDiagDir(GetTunnelDirection(tile))); - } else { - if (GetBridgeTransportType(tile) != TRANSPORT_ROAD) return ROAD_NONE; - return DiagDirToRoadBits(ReverseDiagDir(GetBridgeRampDirection(tile))); - } + if (GetTunnelBridgeTransportType(tile) != TRANSPORT_ROAD) return ROAD_NONE; + return DiagDirToRoadBits(ReverseDiagDir(GetTunnelBridgeDirection(tile))); default: return ROAD_NONE; }