Changeset - r19881:7d0432d79337
[Not reviewed]
master
0 1 0
michi_cc - 11 years ago 2012-12-21 18:51:06
michi_cc@openttd.org
(svn r24836) -Feature(ette): Improve pylon placement around station tiles that display neither pylons nor catenary.
1 file changed with 3 insertions and 0 deletions:
0 comments (0 inline, 0 general)
src/elrail.cpp
Show inline comments
 
@@ -323,6 +323,9 @@ static void DrawCatenaryRailway(const Ti
 
		wireconfig[TS_NEIGHBOUR] = MaskWireBits(neighbour, trackconfig[TS_NEIGHBOUR]);
 
		if (IsTunnelTile(neighbour) && i != GetTunnelBridgeDirection(neighbour)) wireconfig[TS_NEIGHBOUR] = trackconfig[TS_NEIGHBOUR] = TRACK_BIT_NONE;
 

	
 
		/* Ignore station tiles that allow neither wires nor pylons. */
 
		if (IsRailStationTile(neighbour) && !CanStationTileHavePylons(neighbour) && !CanStationTileHaveWires(neighbour)) wireconfig[TS_NEIGHBOUR] = trackconfig[TS_NEIGHBOUR] = TRACK_BIT_NONE;
 

	
 
		/* If the neighboured tile does not smoothly connect to the current tile (because of a foundation),
 
		 * we have to draw all pillars on the current tile. */
 
		if (elevation != GetPCPElevation(neighbour, ReverseDiagDir(i))) wireconfig[TS_NEIGHBOUR] = trackconfig[TS_NEIGHBOUR] = TRACK_BIT_NONE;
0 comments (0 inline, 0 general)