From b5e467978b70884033d8e25a4a9738cc17699e4e Mon Sep 17 00:00:00 2001 From: rubidium Date: Tue, 14 Oct 2008 18:38:51 +0000 Subject: (svn r14464) -Codechange: replace (uint)-1 with UINT_MAX (PhilSophus) --- src/newgrf_industries.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/newgrf_industries.cpp') 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; -- cgit v1.2.3-54-g00ecf