Merge pull request #365 from tkoeppe/abs

[quake3/q3map2/brush.c] Fix arithmetic bug
This commit is contained in:
Timothee "TTimo" Besset 2016-08-16 06:18:15 -06:00 committed by GitHub
commit c49832c272
1 changed files with 1 additions and 1 deletions

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{