diff options
author | peter1138 <peter1138@openttd.org> | 2008-03-25 12:10:13 +0000 |
---|---|---|
committer | peter1138 <peter1138@openttd.org> | 2008-03-25 12:10:13 +0000 |
commit | 6184676ec76e0512f51e98ec06d6f3b152411025 (patch) | |
tree | 392b944dd605681e9d28644848a5e1dc2b253c6e /src/road_cmd.cpp | |
parent | 237524f960f0ec9b5dab54ce4f1706107a711c47 (diff) | |
download | openttd-6184676ec76e0512f51e98ec06d6f3b152411025.tar.xz |
(svn r12410) -Codechange: abstract out the test for catenary on electric rails
Diffstat (limited to 'src/road_cmd.cpp')
-rw-r--r-- | src/road_cmd.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/road_cmd.cpp b/src/road_cmd.cpp index 0f321dfb6..58c2621c7 100644 --- a/src/road_cmd.cpp +++ b/src/road_cmd.cpp @@ -1111,7 +1111,7 @@ static void DrawTile_Road(TileInfo *ti) DrawGroundSprite(SPR_TRAMWAY_OVERLAY + (GetCrossingRoadAxis(ti->tile) ^ 1), pal); DrawTramCatenary(ti, GetCrossingRoadBits(ti->tile)); } - if (GetRailType(ti->tile) == RAILTYPE_ELECTRIC) DrawCatenary(ti); + if (HasCatenary(GetRailType(ti->tile))) DrawCatenary(ti); break; } |