(svn r4284) -Fix: Tunnel portals no longer have a pylon ON them if there is a track right above the portal
authorcelestar
Wed, 05 Apr 2006 09:28:57 +0000
changeset 3452 c3ee991eaba1
parent 3451 86ff1ac451d8
child 3453 4de28826442c
(svn r4284) -Fix: Tunnel portals no longer have a pylon ON them if there is a track right above the portal
elrail.c
--- a/elrail.c	Wed Apr 05 09:17:43 2006 +0000
+++ b/elrail.c	Wed Apr 05 09:28:57 2006 +0000
@@ -179,6 +179,7 @@
 		   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) */