(svn r14464) -Codechange: replace (uint)-1 with UINT_MAX (PhilSophus)

This commit is contained in:
rubidium
2008-10-14 18:38:51 +00:00
parent 03bef3fb5b
commit 272b2ef0e9
22 changed files with 45 additions and 45 deletions

View File

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