summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/elrail.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/elrail.cpp b/src/elrail.cpp
index 93cabaeb6..6faf76615 100644
--- a/src/elrail.cpp
+++ b/src/elrail.cpp
@@ -395,6 +395,8 @@ static void DrawCatenaryOnBridge(const TileInfo *ti)
void DrawCatenary(const TileInfo *ti)
{
+ if (_patches.disable_elrails) return;
+
if (MayHaveBridgeAbove(ti->tile) && IsBridgeAbove(ti->tile)) {
TileIndex head = GetNorthernBridgeEnd(ti->tile);
@@ -402,7 +404,6 @@ void DrawCatenary(const TileInfo *ti)
DrawCatenaryOnBridge(ti);
}
}
- if (_patches.disable_elrails) return;
switch (GetTileType(ti->tile)) {
case MP_RAILWAY: