diff options
author | rubidium <rubidium@openttd.org> | 2008-10-14 18:38:51 +0000 |
---|---|---|
committer | rubidium <rubidium@openttd.org> | 2008-10-14 18:38:51 +0000 |
commit | 272b2ef0e9072c6bf2ee3083c3673ae7773462ab (patch) | |
tree | a41b987e5fdc223ac9abf159f9ee753f07f2234d /src/waypoint.cpp | |
parent | 03bef3fb5b1c25cc887d51e13fd81c7c5129028b (diff) | |
download | openttd-272b2ef0e9072c6bf2ee3083c3673ae7773462ab.tar.xz |
(svn r14464) -Codechange: replace (uint)-1 with UINT_MAX (PhilSophus)
Diffstat (limited to 'src/waypoint.cpp')
-rw-r--r-- | src/waypoint.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/waypoint.cpp b/src/waypoint.cpp index 8d70518b5..cc606acec 100644 --- a/src/waypoint.cpp +++ b/src/waypoint.cpp @@ -85,7 +85,7 @@ static void MakeDefaultWaypointName(Waypoint* wp) uint32 next = 0; // first waypoint number in the bitmap WaypointID idx = 0; // index where we will stop - wp->town_index = ClosestTownFromTile(wp->xy, (uint)-1)->index; + wp->town_index = ClosestTownFromTile(wp->xy, UINT_MAX)->index; /* Find first unused waypoint number belonging to this town. This can never fail, * as long as there can be at most 65535 waypoints in total. @@ -472,7 +472,7 @@ void FixOldWaypoints() /* Convert the old 'town_or_string', to 'string' / 'town' / 'town_cn' */ FOR_ALL_WAYPOINTS(wp) { - wp->town_index = ClosestTownFromTile(wp->xy, (uint)-1)->index; + wp->town_index = ClosestTownFromTile(wp->xy, UINT_MAX)->index; wp->town_cn = 0; if (wp->string & 0xC000) { wp->town_cn = wp->string & 0x3F; |