]> git.rm.cloudns.org Git - xonotic/gmqcc.git/commitdiff
vec3_pbool: or, not and
authorWolfgang Bumiller <wry.git@bumiller.com>
Tue, 12 Nov 2013 14:56:04 +0000 (15:56 +0100)
committerWolfgang Bumiller <wry.git@bumiller.com>
Tue, 12 Nov 2013 14:56:04 +0000 (15:56 +0100)
fold.c

diff --git a/fold.c b/fold.c
index 735758cb688c8fe48feee99980996547bf40e696..eb7e8e6981ab64c3721fd45388fd69b2457f9b3f 100644 (file)
--- a/fold.c
+++ b/fold.c
@@ -160,7 +160,7 @@ static GMQCC_INLINE qcfloat_t vec3_notf(vec3_t a) {
 }
 
 static GMQCC_INLINE bool vec3_pbool(vec3_t a) {
-    return (a.x && a.y && a.z);
+    return (a.x || a.y || a.z);
 }
 
 static GMQCC_INLINE vec3_t vec3_cross(vec3_t a, vec3_t b) {