]> git.xonotic.org Git - xonotic/netradiant.git/blobdiff - tools/quake3/q3map2/brush.c
[quake3/q3map2/brush.c] Fix arithmetic bug
[xonotic/netradiant.git] / tools / quake3 / q3map2 / brush.c
index ae89a127752eddba8103f2ff380e440a1bcab7e9..7114ed170bebdbce5a1530cf11dff822eea6d0fa 100644 (file)
@@ -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{