mirror of
https://github.com/JGRennison/OpenTTD-patches.git
synced 2024-11-17 21:25:40 +00:00
(svn r4284) -Fix: Tunnel portals no longer have a pylon ON them if there is a track right above the portal
This commit is contained in:
parent
0d0f2f6d98
commit
f3e650a7d1
1
elrail.c
1
elrail.c
@ -179,6 +179,7 @@ static void DrawCatenaryRailway(const TileInfo *ti)
|
|||||||
existing foundataions, so we do have to do that manually later on.*/
|
existing foundataions, so we do have to do that manually later on.*/
|
||||||
tileh[TS_NEIGHBOUR] = GetTileSlope(neighbour, NULL);
|
tileh[TS_NEIGHBOUR] = GetTileSlope(neighbour, NULL);
|
||||||
trackconfig[TS_NEIGHBOUR] = GetRailTrackBitsUniversal(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);
|
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) */
|
PPPpreferred[i] = 0xFF; /* We start with preferring everything (end-of-line in any direction) */
|
||||||
|
Loading…
Reference in New Issue
Block a user