summaryrefslogtreecommitdiff
path: root/elrail.c
diff options
context:
space:
mode:
Diffstat (limited to 'elrail.c')
-rw-r--r--elrail.c16
1 files changed, 9 insertions, 7 deletions
diff --git a/elrail.c b/elrail.c
index 14fd85049..d815c27c7 100644
--- a/elrail.c
+++ b/elrail.c
@@ -352,14 +352,16 @@ void DrawCatenary(const TileInfo *ti)
sss->x_size, sss->y_size, sss->z_size, GetSlopeZ(ti->x, ti->y) + sss->z_offset);
return;
}
- /* Fall through */
- case MP_TUNNELBRIDGE:
- if (IsBridgeTile(ti->tile) && IsBridgeMiddle(ti->tile) && GetRailTypeOnBridge(ti->tile) == RAILTYPE_ELECTRIC) DrawCatenaryOnBridge(ti);
- /* Fall further */
- case MP_STREET: case MP_STATION:
- DrawCatenaryRailway(ti);
break;
- default:
+
+ case MP_TUNNELBRIDGE:
+ if (IsBridge(ti->tile) && IsBridgeMiddle(ti->tile) && GetRailTypeOnBridge(ti->tile) == RAILTYPE_ELECTRIC) DrawCatenaryOnBridge(ti);
break;
+
+ case MP_STREET: break;
+ case MP_STATION: break;
+
+ default: return;
}
+ DrawCatenaryRailway(ti);
}