summaryrefslogtreecommitdiff
path: root/src/newgrf_industries.cpp
diff options
context:
space:
mode:
authorrubidium <rubidium@openttd.org>2008-10-14 18:38:51 +0000
committerrubidium <rubidium@openttd.org>2008-10-14 18:38:51 +0000
commit272b2ef0e9072c6bf2ee3083c3673ae7773462ab (patch)
treea41b987e5fdc223ac9abf159f9ee753f07f2234d /src/newgrf_industries.cpp
parent03bef3fb5b1c25cc887d51e13fd81c7c5129028b (diff)
downloadopenttd-272b2ef0e9072c6bf2ee3083c3673ae7773462ab.tar.xz
(svn r14464) -Codechange: replace (uint)-1 with UINT_MAX (PhilSophus)
Diffstat (limited to 'src/newgrf_industries.cpp')
-rw-r--r--src/newgrf_industries.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/newgrf_industries.cpp b/src/newgrf_industries.cpp
index ebcf20ecb..9e40f2f28 100644
--- a/src/newgrf_industries.cpp
+++ b/src/newgrf_industries.cpp
@@ -512,7 +512,7 @@ bool CheckIfCallBackAllowsCreation(TileIndex tile, IndustryType type, uint itspe
ind.width = 0;
ind.type = type;
ind.selected_layout = itspec_index;
- ind.town = ClosestTownFromTile(tile, (uint)-1);
+ ind.town = ClosestTownFromTile(tile, UINT_MAX);
NewIndustryResolver(&object, tile, &ind, type);
object.GetVariable = IndustryLocationGetVariable;