summaryrefslogtreecommitdiff
path: root/src/road_map.cpp
diff options
context:
space:
mode:
authorsmatz <smatz@openttd.org>2007-12-16 19:30:42 +0000
committersmatz <smatz@openttd.org>2007-12-16 19:30:42 +0000
commit145517fb8e0bbd66daa711ca2b31aecc0179fe74 (patch)
tree3d93af5bbe577ea3e66b1184cb89c1a934d6bcda /src/road_map.cpp
parent0730b9afc135eabce02144e2928b86cfa0b7f95e (diff)
downloadopenttd-145517fb8e0bbd66daa711ca2b31aecc0179fe74.tar.xz
(svn r11649) -Codechange: some code can be simplified thanks to changes in r11642
Diffstat (limited to 'src/road_map.cpp')
-rw-r--r--src/road_map.cpp9
1 files changed, 2 insertions, 7 deletions
diff --git a/src/road_map.cpp b/src/road_map.cpp
index 0bdf66dfe..4d6a1d6f8 100644
--- a/src/road_map.cpp
+++ b/src/road_map.cpp
@@ -34,13 +34,8 @@ RoadBits GetAnyRoadBits(TileIndex tile, RoadType rt)
return DiagDirToRoadBits(GetRoadStopDir(tile));
case MP_TUNNELBRIDGE:
- if (IsTunnel(tile)) {
- if (GetTunnelBridgeTransportType(tile) != TRANSPORT_ROAD) return ROAD_NONE;
- return DiagDirToRoadBits(ReverseDiagDir(GetTunnelBridgeDirection(tile)));
- } else {
- if (GetTunnelBridgeTransportType(tile) != TRANSPORT_ROAD) return ROAD_NONE;
- return DiagDirToRoadBits(ReverseDiagDir(GetTunnelBridgeDirection(tile)));
- }
+ if (GetTunnelBridgeTransportType(tile) != TRANSPORT_ROAD) return ROAD_NONE;
+ return DiagDirToRoadBits(ReverseDiagDir(GetTunnelBridgeDirection(tile)));
default: return ROAD_NONE;
}