From: Thomas Köppe Date: Sun, 14 Aug 2016 00:14:17 +0000 (+0100) Subject: [quake3/q3map2/brush.c] Fix arithmetic bug X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=0992bd78a0c404feb64ea134dfab7752ebfeb9d4;p=xonotic%2Fnetradiant.git [quake3/q3map2/brush.c] Fix arithmetic bug --- diff --git a/tools/quake3/q3map2/brush.c b/tools/quake3/q3map2/brush.c index ae89a127..7114ed17 100644 --- a/tools/quake3/q3map2/brush.c +++ b/tools/quake3/q3map2/brush.c @@ -267,7 +267,7 @@ void SnapWeldVector( vec3_t a, vec3_t b, vec3_t out ){ } /* use nearest */ - else if ( fabs( ai - a[ i ] ) < fabs( bi < b[ i ] ) ) { + else if ( fabs( ai - a[ i ] ) < fabs( bi - b[ i ] ) ) { out[ i ] = a[ i ]; } else{