diff options
author | smatz <smatz@openttd.org> | 2008-04-23 19:07:18 +0000 |
---|---|---|
committer | smatz <smatz@openttd.org> | 2008-04-23 19:07:18 +0000 |
commit | ac0cfcde339c03dd0c6dabd77dd6f9b174bc0099 (patch) | |
tree | af0268550e018efdf132473b222fbd71a1c497f5 /src | |
parent | 1461ba9d3595b6e7a63007deebf3fd2535552db6 (diff) | |
download | openttd-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.cpp | 2 |
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; |