mirror of
https://github.com/OpenTTD/OpenTTD.git
synced 2025-03-06 22:28:56 +00:00
(svn r18737) -Fix (r12028): Var67 data wasn't swapped properly for orientation.
This commit is contained in:
parent
75f717cce3
commit
3157dfb675
@ -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);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user