diff options
author | yexo <yexo@openttd.org> | 2010-10-19 21:00:45 +0000 |
---|---|---|
committer | yexo <yexo@openttd.org> | 2010-10-19 21:00:45 +0000 |
commit | 9373ee71d999a08c51938f6214fc0360c477992a (patch) | |
tree | 00e8ee0c86f194913c08f2bb0876a1ae08b00537 /src/newgrf_industries.cpp | |
parent | 3ab422b05715591be52334ce8cd522e506ddfdee (diff) | |
download | openttd-9373ee71d999a08c51938f6214fc0360c477992a.tar.xz |
(svn r20996) -Change: [NewGRF] the X and Y offsets in the parameter for industry vars 60,61,62,63 are unsigned instead of signed
Diffstat (limited to 'src/newgrf_industries.cpp')
-rw-r--r-- | src/newgrf_industries.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/newgrf_industries.cpp b/src/newgrf_industries.cpp index a88a2d0a0..76b6af876 100644 --- a/src/newgrf_industries.cpp +++ b/src/newgrf_industries.cpp @@ -236,19 +236,19 @@ uint32 IndustryGetVariable(const ResolverObject *object, byte variable, byte par case 0x46: return industry->construction_date; // Date when built - long format - (in days) /* Get industry ID at offset param */ - case 0x60: return GetIndustryIDAtOffset(GetNearbyTile(parameter, industry->location.tile), industry, object->grffile->grfid); + case 0x60: return GetIndustryIDAtOffset(GetNearbyTile(parameter, industry->location.tile, false), industry, object->grffile->grfid); /* Get random tile bits at offset param */ case 0x61: - tile = GetNearbyTile(parameter, tile); + tile = GetNearbyTile(parameter, tile, false); return (IsTileType(tile, MP_INDUSTRY) && Industry::GetByTile(tile) == industry) ? GetIndustryRandomBits(tile) : 0; /* Land info of nearby tiles */ - case 0x62: return GetNearbyIndustryTileInformation(parameter, tile, INVALID_INDUSTRY); + case 0x62: return GetNearbyIndustryTileInformation(parameter, tile, INVALID_INDUSTRY, false); /* Animation stage of nearby tiles */ case 0x63: - tile = GetNearbyTile(parameter, tile); + tile = GetNearbyTile(parameter, tile, false); if (IsTileType(tile, MP_INDUSTRY) && Industry::GetByTile(tile) == industry) { return GetAnimationFrame(tile); } |