summaryrefslogtreecommitdiff
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
commitccfe024a2a2218af6824b7d82181c063b9c8eeee (patch)
treeaf0268550e018efdf132473b222fbd71a1c497f5
parente3ca91dc1508edd858e0f03e73de7e0519a8f30d (diff)
downloadopenttd-ccfe024a2a2218af6824b7d82181c063b9c8eeee.tar.xz
(svn r12852) -Fix: do not try to draw rail catenary above non-rail station tiles
-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;