summaryrefslogtreecommitdiff
path: root/src/smallmap_gui.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/smallmap_gui.cpp
parent0730b9afc135eabce02144e2928b86cfa0b7f95e (diff)
downloadopenttd-145517fb8e0bbd66daa711ca2b31aecc0179fe74.tar.xz
(svn r11649) -Codechange: some code can be simplified thanks to changes in r11642
Diffstat (limited to 'src/smallmap_gui.cpp')
-rw-r--r--src/smallmap_gui.cpp7
1 files changed, 1 insertions, 6 deletions
diff --git a/src/smallmap_gui.cpp b/src/smallmap_gui.cpp
index 638a43322..2208128b7 100644
--- a/src/smallmap_gui.cpp
+++ b/src/smallmap_gui.cpp
@@ -339,13 +339,8 @@ static inline TileType GetEffectiveTileType(TileIndex tile)
TileType t = GetTileType(tile);
if (t == MP_TUNNELBRIDGE) {
- TransportType tt;
+ TransportType tt = GetTunnelBridgeTransportType(tile);
- if (IsTunnel(tile)) {
- tt = GetTunnelBridgeTransportType(tile);
- } else {
- tt = GetTunnelBridgeTransportType(tile);
- }
switch (tt) {
case TRANSPORT_RAIL: t = MP_RAILWAY; break;
case TRANSPORT_ROAD: t = MP_ROAD; break;