diff options
author | peter1138 <peter1138@openttd.org> | 2010-01-05 22:18:04 +0000 |
---|---|---|
committer | peter1138 <peter1138@openttd.org> | 2010-01-05 22:18:04 +0000 |
commit | 3157dfb6754417092e99520b3c24a46f132260fa (patch) | |
tree | c0a1c1458072d3df138a024614d4f5befe60c284 | |
parent | 75f717cce3f096247a0dbafd588abc917ea5a6aa (diff) | |
download | openttd-3157dfb6754417092e99520b3c24a46f132260fa.tar.xz |
(svn r18737) -Fix (r12028): Var67 data wasn't swapped properly for orientation.
-rw-r--r-- | src/newgrf_station.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
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); } |