[quake3/q3map2/brush.c] Fix arithmetic bug

This commit is contained in:
Thomas Köppe 2016-08-14 01:14:17 +01:00
parent 6409de3029
commit d18d90278e

View file

@ -262,7 +262,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{