diff options
author | skidd13 <skidd13@openttd.org> | 2008-06-27 17:46:43 +0000 |
---|---|---|
committer | skidd13 <skidd13@openttd.org> | 2008-06-27 17:46:43 +0000 |
commit | 9335a28cb5af25de41d762b70816d2e6b7dc98ee (patch) | |
tree | 36a4da60f2a4bc2eec04719a969772bbbe90137d /src/roadveh_cmd.cpp | |
parent | de862352740ff6ef981855fc10c5a7e2a61c124a (diff) | |
download | openttd-9335a28cb5af25de41d762b70816d2e6b7dc98ee.tar.xz |
(svn r13647) -Codechange: replace MAX_UVALUE() for std types with the equivalent constant
Diffstat (limited to 'src/roadveh_cmd.cpp')
-rw-r--r-- | src/roadveh_cmd.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/roadveh_cmd.cpp b/src/roadveh_cmd.cpp index 8280b2570..573182133 100644 --- a/src/roadveh_cmd.cpp +++ b/src/roadveh_cmd.cpp @@ -727,7 +727,7 @@ TileIndex RoadVehicle::GetOrderStationLocation(StationID station) TileIndex dest = INVALID_TILE; const RoadStop *rs = GetStation(station)->GetPrimaryRoadStop(this); if (rs != NULL) { - uint mindist = MAX_UVALUE(uint); + uint mindist = UINT_MAX; for (; rs != NULL; rs = rs->GetNextRoadStop(this)) { uint dist = DistanceManhattan(this->tile, rs->xy); |