From 3157dfb6754417092e99520b3c24a46f132260fa Mon Sep 17 00:00:00 2001 From: peter1138 Date: Tue, 5 Jan 2010 22:18:04 +0000 Subject: (svn r18737) -Fix (r12028): Var67 data wasn't swapped properly for orientation. --- src/newgrf_station.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/newgrf_station.cpp b/src/newgrf_station.cpp index d6f747303..e99925adb 100644 --- a/src/newgrf_station.cpp +++ b/src/newgrf_station.cpp @@ -477,7 +477,7 @@ static uint32 StationGetVariable(const ResolverObject *object, byte variable, by 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); } -- cgit v1.2.3-70-g09d2