From 0992bd78a0c404feb64ea134dfab7752ebfeb9d4 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Thomas=20K=C3=B6ppe?= Date: Sun, 14 Aug 2016 01:14:17 +0100 Subject: [PATCH] [quake3/q3map2/brush.c] Fix arithmetic bug --- tools/quake3/q3map2/brush.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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{ -- 2.39.2