diff options
author | skidd13 <skidd13@openttd.org> | 2008-06-27 17:46:43 +0000 |
---|---|---|
committer | skidd13 <skidd13@openttd.org> | 2008-06-27 17:46:43 +0000 |
commit | 9335a28cb5af25de41d762b70816d2e6b7dc98ee (patch) | |
tree | 36a4da60f2a4bc2eec04719a969772bbbe90137d /src/newgrf_industries.cpp | |
parent | de862352740ff6ef981855fc10c5a7e2a61c124a (diff) | |
download | openttd-9335a28cb5af25de41d762b70816d2e6b7dc98ee.tar.xz |
(svn r13647) -Codechange: replace MAX_UVALUE() for std types with the equivalent constant
Diffstat (limited to 'src/newgrf_industries.cpp')
-rw-r--r-- | src/newgrf_industries.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/newgrf_industries.cpp b/src/newgrf_industries.cpp index 666cd0ffb..737dfee5a 100644 --- a/src/newgrf_industries.cpp +++ b/src/newgrf_industries.cpp @@ -135,7 +135,7 @@ uint32 GetIndustryIDAtOffset(TileIndex tile, const Industry *i) static uint32 GetClosestIndustry(TileIndex tile, IndustryType type, const Industry *current) { - uint32 best_dist = MAX_UVALUE(uint32); + uint32 best_dist = UINT32_MAX; const Industry *i; FOR_ALL_INDUSTRIES(i) { if (i->type != type || i == current) continue; @@ -158,7 +158,7 @@ static uint32 GetCountAndDistanceOfClosestInstance(byte param_setID, byte layout { uint32 GrfID = GetRegister(0x100); ///< Get the GRFID of the definition to look for in register 100h IndustryType ind_index; - uint32 closest_dist = MAX_UVALUE(uint32); + uint32 closest_dist = UINT32_MAX; byte count = 0; /* Determine what will be the industry type to look for */ |