summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorcelestar <celestar@openttd.org>2006-04-05 09:28:57 +0000
committercelestar <celestar@openttd.org>2006-04-05 09:28:57 +0000
commit6ddb58af6d6cfd9e6c782f91bd7e5367a29411ff (patch)
treeeb8452819a8dc43ad41db411397690295b877ee0
parent0c3a0c7ec0c38ffbaddc5c9ed3274ff1b01e8781 (diff)
downloadopenttd-6ddb58af6d6cfd9e6c782f91bd7e5367a29411ff.tar.xz
(svn r4284) -Fix: Tunnel portals no longer have a pylon ON them if there is a track right above the portal
-rw-r--r--elrail.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/elrail.c b/elrail.c
index 02a557e5f..d8b08f62a 100644
--- a/elrail.c
+++ b/elrail.c
@@ -179,6 +179,7 @@ static void DrawCatenaryRailway(const TileInfo *ti)
existing foundataions, so we do have to do that manually later on.*/
tileh[TS_NEIGHBOUR] = GetTileSlope(neighbour, NULL);
trackconfig[TS_NEIGHBOUR] = GetRailTrackBitsUniversal(neighbour, NULL);
+ if (IsTunnelTile(neighbour) && i != GetTunnelDirection(neighbour)) trackconfig[TS_NEIGHBOUR] = 0;
isflat[TS_NEIGHBOUR] = trackconfig[TS_NEIGHBOUR] & (TRACK_BIT_UPPER | TRACK_BIT_LOWER | TRACK_BIT_LEFT | TRACK_BIT_RIGHT);
PPPpreferred[i] = 0xFF; /* We start with preferring everything (end-of-line in any direction) */