From ac0cfcde339c03dd0c6dabd77dd6f9b174bc0099 Mon Sep 17 00:00:00 2001 From: smatz Date: Wed, 23 Apr 2008 19:07:18 +0000 Subject: (svn r12852) -Fix: do not try to draw rail catenary above non-rail station tiles --- src/station_cmd.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src') 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; -- cgit v1.2.3-70-g09d2