From 8f4c6d42f90dc6bda68c803bebec48a9382eb675 Mon Sep 17 00:00:00 2001 From: frosch Date: Tue, 8 Nov 2011 17:29:01 +0000 Subject: (svn r23154) -Change: [NewGRF v8] Use heightlevel units in nearby tile info variables. (rubidium) --- src/newgrf_station.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/newgrf_station.cpp') diff --git a/src/newgrf_station.cpp b/src/newgrf_station.cpp index 8ef375c4c..240f66436 100644 --- a/src/newgrf_station.cpp +++ b/src/newgrf_station.cpp @@ -296,7 +296,7 @@ static uint32 StationGetVariable(const ResolverObject *object, byte variable, ui Slope tileh = GetTileSlope(tile); bool swap = (object->u.station.axis == AXIS_Y && HasBit(tileh, CORNER_W) != HasBit(tileh, CORNER_E)); - return GetNearbyTileInformation(tile) ^ (swap ? SLOPE_EW : 0); + return GetNearbyTileInformation(tile, object->grffile->grf_version >= 8) ^ (swap ? SLOPE_EW : 0); } break; @@ -353,7 +353,7 @@ static uint32 StationGetVariable(const ResolverObject *object, byte variable, ui Slope tileh = GetTileSlope(tile); bool swap = (axis == AXIS_Y && HasBit(tileh, CORNER_W) != HasBit(tileh, CORNER_E)); - return GetNearbyTileInformation(tile) ^ (swap ? SLOPE_EW : 0); + return GetNearbyTileInformation(tile, object->grffile->grf_version >= 8) ^ (swap ? SLOPE_EW : 0); } case 0x68: { // Station info of nearby tiles -- cgit v1.2.3-54-g00ecf