summaryrefslogtreecommitdiff
path: root/src/company_cmd.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/company_cmd.cpp
parent03bef3fb5b1c25cc887d51e13fd81c7c5129028b (diff)
downloadopenttd-272b2ef0e9072c6bf2ee3083c3673ae7773462ab.tar.xz
(svn r14464) -Codechange: replace (uint)-1 with UINT_MAX (PhilSophus)
Diffstat (limited to 'src/company_cmd.cpp')
-rw-r--r--src/company_cmd.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/company_cmd.cpp b/src/company_cmd.cpp
index fba53f5d7..d8a4c73b5 100644
--- a/src/company_cmd.cpp
+++ b/src/company_cmd.cpp
@@ -287,7 +287,7 @@ void GetNameOfOwner(Owner owner, TileIndex tile)
SetDParam(1, owner);
}
} else {
- const Town *t = ClosestTownFromTile(tile, (uint)-1);
+ const Town *t = ClosestTownFromTile(tile, UINT_MAX);
SetDParam(0, STR_TOWN);
SetDParam(1, t->index);
@@ -333,7 +333,7 @@ static void GenerateCompanyName(Company *c)
tile = c->last_build_coordinate;
if (tile == 0) return;
- t = ClosestTownFromTile(tile, (uint)-1);
+ t = ClosestTownFromTile(tile, UINT_MAX);
if (t->name == NULL && IsInsideMM(t->townnametype, SPECSTR_TOWNNAME_START, SPECSTR_TOWNNAME_LAST + 1)) {
str = t->townnametype - SPECSTR_TOWNNAME_START + SPECSTR_PLAYERNAME_START;