Changeset - r2841:b4a60d909d86
[Not reviewed]
master
0 1 0
tron - 18 years ago 2006-01-07 17:26:37
tron@openttd.org
(svn r3389) -Fix: No fence was placed when placing fences and the neighbouring tile is a rail configuration which permits a fence but has a signal
(Per request of peter1138 the above line does not contain any commas)
1 file changed with 8 insertions and 8 deletions:
0 comments (0 inline, 0 general)
rail_cmd.c
Show inline comments
 
@@ -1996,8 +1996,8 @@ static void TileLoop_Track(TileIndex til
 

	
 
					if (!IsTileType(n, MP_RAILWAY) ||
 
							!IsTileOwner(n, owner) ||
 
							_m[n].m5 == TRACK_BIT_UPPER ||
 
							_m[n].m5 == TRACK_BIT_LEFT) {
 
							(_m[n].m5 & TRACK_BIT_MASK) == TRACK_BIT_UPPER ||
 
							(_m[n].m5 & TRACK_BIT_MASK) == TRACK_BIT_LEFT) {
 
						new_ground = RAIL_GROUND_FENCE_NW;
 
					}
 
				}
 
@@ -2010,8 +2010,8 @@ static void TileLoop_Track(TileIndex til
 

	
 
					if (!IsTileType(n, MP_RAILWAY) ||
 
							!IsTileOwner(n, owner) ||
 
							_m[n].m5 == TRACK_BIT_LOWER ||
 
							_m[n].m5 == TRACK_BIT_RIGHT) {
 
							(_m[n].m5 & TRACK_BIT_MASK) == TRACK_BIT_LOWER ||
 
							(_m[n].m5 & TRACK_BIT_MASK) == TRACK_BIT_RIGHT) {
 
						new_ground = (new_ground == RAIL_GROUND_FENCE_NW) ?
 
							RAIL_GROUND_FENCE_SENW : RAIL_GROUND_FENCE_SE;
 
					}
 
@@ -2025,8 +2025,8 @@ static void TileLoop_Track(TileIndex til
 

	
 
					if (!IsTileType(n, MP_RAILWAY) ||
 
							!IsTileOwner(n, owner) ||
 
							_m[n].m5 == TRACK_BIT_UPPER ||
 
							_m[n].m5 == TRACK_BIT_RIGHT) {
 
							(_m[n].m5 & TRACK_BIT_MASK) == TRACK_BIT_UPPER ||
 
							(_m[n].m5 & TRACK_BIT_MASK) == TRACK_BIT_RIGHT) {
 
						new_ground = RAIL_GROUND_FENCE_NE;
 
					}
 
				}
 
@@ -2039,8 +2039,8 @@ static void TileLoop_Track(TileIndex til
 

	
 
					if (!IsTileType(n, MP_RAILWAY) ||
 
							!IsTileOwner(n, owner) ||
 
							_m[n].m5 == TRACK_BIT_LOWER ||
 
							_m[n].m5 == TRACK_BIT_LEFT) {
 
							(_m[n].m5 & TRACK_BIT_MASK) == TRACK_BIT_LOWER ||
 
							(_m[n].m5 & TRACK_BIT_MASK) == TRACK_BIT_LEFT) {
 
						new_ground = (new_ground == RAIL_GROUND_FENCE_NE) ?
 
							RAIL_GROUND_FENCE_NESW : RAIL_GROUND_FENCE_SW;
 
					}
0 comments (0 inline, 0 general)