summaryrefslogtreecommitdiff
path: root/src/town_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
commitb5e467978b70884033d8e25a4a9738cc17699e4e (patch)
treea41b987e5fdc223ac9abf159f9ee753f07f2234d /src/town_cmd.cpp
parent6e397dd3f0b4999c65f0ad5d35fa9007bc6bc9d8 (diff)
downloadopenttd-b5e467978b70884033d8e25a4a9738cc17699e4e.tar.xz
(svn r14464) -Codechange: replace (uint)-1 with UINT_MAX (PhilSophus)
Diffstat (limited to 'src/town_cmd.cpp')
-rw-r--r--src/town_cmd.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/town_cmd.cpp b/src/town_cmd.cpp
index ccad4c0c4..57abf80fd 100644
--- a/src/town_cmd.cpp
+++ b/src/town_cmd.cpp
@@ -95,7 +95,7 @@ Town::~Town()
case MP_ROAD:
case MP_TUNNELBRIDGE:
if (IsTileOwner(tile, OWNER_TOWN) &&
- ClosestTownFromTile(tile, (uint)-1) == this)
+ ClosestTownFromTile(tile, UINT_MAX) == this)
DoCommand(tile, 0, 0, DC_EXEC, CMD_LANDSCAPE_CLEAR);
break;