GRF: Use access mask when evaluating get nearby tile information variable
This commit is contained in:
@@ -146,7 +146,7 @@ uint32 RoadStopScopeResolver::GetVariable(uint16 variable, uint32 parameter, Get
|
||||
if (this->tile == INVALID_TILE) return 0;
|
||||
TileIndex tile = this->tile;
|
||||
if (parameter != 0) tile = GetNearbyTile(parameter, tile); // only perform if it is required
|
||||
return GetNearbyTileInformation(tile, this->ro.grffile->grf_version >= 8);
|
||||
return GetNearbyTileInformation(tile, this->ro.grffile->grf_version >= 8, extra->mask);
|
||||
}
|
||||
|
||||
/* Road stop info of nearby tiles */
|
||||
|
Reference in New Issue
Block a user