From 272b2ef0e9072c6bf2ee3083c3673ae7773462ab Mon Sep 17 00:00:00 2001 From: rubidium Date: Tue, 14 Oct 2008 18:38:51 +0000 Subject: (svn r14464) -Codechange: replace (uint)-1 with UINT_MAX (PhilSophus) --- src/vehicle.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/vehicle.cpp') diff --git a/src/vehicle.cpp b/src/vehicle.cpp index 8813c8939..0da7e16b6 100644 --- a/src/vehicle.cpp +++ b/src/vehicle.cpp @@ -970,7 +970,7 @@ void ViewportAddVehicles(DrawPixelInfo *dpi) Vehicle *CheckClickOnVehicle(const ViewPort *vp, int x, int y) { Vehicle *found = NULL, *v; - uint dist, best_dist = (uint)-1; + uint dist, best_dist = UINT_MAX; if ((uint)(x -= vp->left) >= (uint)vp->width || (uint)(y -= vp->top) >= (uint)vp->height) return NULL; -- cgit v1.2.3-54-g00ecf