summaryrefslogtreecommitdiff
path: root/src/newgrf_industries.cpp
diff options
context:
space:
mode:
authorskidd13 <skidd13@openttd.org>2008-06-27 17:46:43 +0000
committerskidd13 <skidd13@openttd.org>2008-06-27 17:46:43 +0000
commit0a178274e279d0f2737c870e366529b42c7edd73 (patch)
tree36a4da60f2a4bc2eec04719a969772bbbe90137d /src/newgrf_industries.cpp
parent54333f5f06fb96ff23aa422f3bde3934083e968d (diff)
downloadopenttd-0a178274e279d0f2737c870e366529b42c7edd73.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.cpp4
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 */