summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorsmatz <smatz@openttd.org>2008-04-23 19:07:18 +0000
committersmatz <smatz@openttd.org>2008-04-23 19:07:18 +0000
commitac0cfcde339c03dd0c6dabd77dd6f9b174bc0099 (patch)
treeaf0268550e018efdf132473b222fbd71a1c497f5 /src
parent1461ba9d3595b6e7a63007deebf3fd2535552db6 (diff)
downloadopenttd-ac0cfcde339c03dd0c6dabd77dd6f9b174bc0099.tar.xz
(svn r12852) -Fix: do not try to draw rail catenary above non-rail station tiles
Diffstat (limited to 'src')
-rw-r--r--src/station_cmd.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/station_cmd.cpp b/src/station_cmd.cpp
index 0a0669e32..f615ac0a9 100644
--- a/src/station_cmd.cpp
+++ b/src/station_cmd.cpp
@@ -2182,7 +2182,7 @@ static void DrawTile_Station(TileInfo *ti)
DrawGroundSprite(image, HasBit(image, PALETTE_MODIFIER_COLOR) ? palette : PAL_NONE);
}
- if (HasCatenary(GetRailType(ti->tile)) && IsStationTileElectrifiable(ti->tile)) DrawCatenary(ti);
+ if (IsRailwayStation(ti->tile) && HasCatenary(GetRailType(ti->tile)) && IsStationTileElectrifiable(ti->tile)) DrawCatenary(ti);
if (HasBit(roadtypes, ROADTYPE_TRAM)) {
Axis axis = GetRoadStopDir(ti->tile) == DIAGDIR_NE ? AXIS_X : AXIS_Y;