diff options
author | rubidium <rubidium@openttd.org> | 2008-10-14 18:38:51 +0000 |
---|---|---|
committer | rubidium <rubidium@openttd.org> | 2008-10-14 18:38:51 +0000 |
commit | b5e467978b70884033d8e25a4a9738cc17699e4e (patch) | |
tree | a41b987e5fdc223ac9abf159f9ee753f07f2234d /src/newgrf_industrytiles.cpp | |
parent | 6e397dd3f0b4999c65f0ad5d35fa9007bc6bc9d8 (diff) | |
download | openttd-b5e467978b70884033d8e25a4a9738cc17699e4e.tar.xz |
(svn r14464) -Codechange: replace (uint)-1 with UINT_MAX (PhilSophus)
Diffstat (limited to 'src/newgrf_industrytiles.cpp')
-rw-r--r-- | src/newgrf_industrytiles.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/newgrf_industrytiles.cpp b/src/newgrf_industrytiles.cpp index 50d59f173..3ca228889 100644 --- a/src/newgrf_industrytiles.cpp +++ b/src/newgrf_industrytiles.cpp @@ -79,7 +79,7 @@ static uint32 IndustryTileGetVariable(const ResolverObject *object, byte variabl case 0x41 : return GetTerrainType(tile); /* Current town zone of the tile in the nearest town */ - case 0x42 : return GetTownRadiusGroup(ClosestTownFromTile(tile, (uint)-1), tile); + case 0x42 : return GetTownRadiusGroup(ClosestTownFromTile(tile, UINT_MAX), tile); /* Relative position */ case 0x43 : return GetRelativePosition(tile, inds->xy); |