diff options
Diffstat (limited to 'src/rail_cmd.cpp')
-rw-r--r-- | src/rail_cmd.cpp | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/rail_cmd.cpp b/src/rail_cmd.cpp index 991751e9c..012085a2f 100644 --- a/src/rail_cmd.cpp +++ b/src/rail_cmd.cpp @@ -44,6 +44,7 @@ #include "station_map.h" #include "water_map.h" #include "functions.h" +#include "elrail_func.h" #include "oldpool_func.h" #include "table/sprites.h" @@ -1762,7 +1763,7 @@ static void DrawTile_Track(TileInfo *ti) if (HasBit(_display_opt, DO_FULL_DETAIL)) DrawTrackDetails(ti); - if (HasCatenary(GetRailType(ti->tile))) DrawCatenary(ti); + if (HasCatenaryDrawn(GetRailType(ti->tile))) DrawCatenary(ti); if (HasSignals(ti->tile)) DrawSignals(ti->tile, rails); } else { @@ -1841,7 +1842,7 @@ default_waypoint: DrawGroundSprite(image, PAL_NONE); - if (HasCatenary(GetRailType(ti->tile))) DrawCatenary(ti); + if (HasCatenaryDrawn(GetRailType(ti->tile))) DrawCatenary(ti); /* End now if buildings are invisible */ if (IsInvisibilitySet(TO_BUILDINGS)) return; |