(svn r13647) -Codechange: replace MAX_UVALUE() for std types with the equivalent constant

This commit is contained in:
skidd13
2008-06-27 17:46:43 +00:00
parent 54333f5f06
commit 0a178274e2
6 changed files with 8 additions and 8 deletions

View File

@@ -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);