summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorcelestar <celestar@openttd.org>2006-03-30 13:12:36 +0000
committercelestar <celestar@openttd.org>2006-03-30 13:12:36 +0000
commit3e2edd63c9e753a2fa8145dd360f34bc95ee9cf0 (patch)
treedcb6b4872629a67b00a32448a58c861737b92435
parent2b8eaa2e81257ae2357ff881df22029f396ce620 (diff)
downloadopenttd-3e2edd63c9e753a2fa8145dd360f34bc95ee9cf0.tar.xz
(svn r4178) -Fix: Draw catenary inside waypoints as well
-rw-r--r--elrail.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/elrail.c b/elrail.c
index 6ba081795..720f9dbe0 100644
--- a/elrail.c
+++ b/elrail.c
@@ -76,6 +76,8 @@ static TrackBits GetRailTrackBitsUniversal(TileIndex t, byte *override)
switch (GetRailTileType(t)) {
case RAIL_TYPE_NORMAL: case RAIL_TYPE_SIGNALS:
return GetTrackBits(t);
+ case RAIL_TYPE_DEPOT_WAYPOINT:
+ if (GetRailTileSubtype(t) == RAIL_SUBTYPE_WAYPOINT) return GetRailWaypointBits(t);
default:
return 0;
}