Changeset - r14178:c1d7352855b6
[Not reviewed]
master
0 1 0
peter1138 - 14 years ago 2010-01-05 22:18:04
peter1138@openttd.org
(svn r18737) -Fix (r12028): Var67 data wasn't swapped properly for orientation.
1 file changed with 1 insertions and 1 deletions:
0 comments (0 inline, 0 general)
src/newgrf_station.cpp
Show inline comments
 
@@ -477,7 +477,7 @@ static uint32 StationGetVariable(const R
 
			if (parameter != 0) tile = GetNearbyTile(parameter, tile); // only perform if it is required
 

	
 
			Slope tileh = GetTileSlope(tile, NULL);
 
			bool swap = (axis == AXIS_Y && HasBit(tileh, SLOPE_W) != HasBit(tileh, SLOPE_E));
 
			bool swap = (axis == AXIS_Y && HasBit(tileh, CORNER_W) != HasBit(tileh, CORNER_E));
 

	
 
			return GetNearbyTileInformation(tile) ^ (swap ? SLOPE_EW : 0);
 
		}
0 comments (0 inline, 0 general)