diff options
Diffstat (limited to 'src')
-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); } |