changeset 14188:3567fc0ac6ee draft

(svn r18737) -Fix (r12028): Var67 data wasn't swapped properly for orientation.
author peter1138 <peter1138@openttd.org>
date Tue, 05 Jan 2010 22:18:04 +0000
parents 8395df964fac
children 6b31c7a77ef6
files src/newgrf_station.cpp
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/src/newgrf_station.cpp
+++ b/src/newgrf_station.cpp
@@ -477,7 +477,7 @@
 			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);
 		}