summaryrefslogtreecommitdiff
path: root/src/company_cmd.cpp
diff options
context:
space:
mode:
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;