]> git.xonotic.org Git - xonotic/gmqcc.git/commitdiff
subtracting != adding
authorWolfgang Bumiller <wry.git@bumiller.com>
Tue, 12 Nov 2013 13:31:11 +0000 (14:31 +0100)
committerWolfgang Bumiller <wry.git@bumiller.com>
Tue, 12 Nov 2013 13:31:11 +0000 (14:31 +0100)
fold.c

diff --git a/fold.c b/fold.c
index 0128dece56cf030039463c7c0619c482a3ac455e..cd827bc5aa1d376913e50565282c33bf449e97bf 100644 (file)
--- a/fold.c
+++ b/fold.c
@@ -59,9 +59,9 @@ static GMQCC_INLINE vec3_t vec3_add(vec3_t a, vec3_t b) {
 
 static GMQCC_INLINE vec3_t vec3_sub(vec3_t a, vec3_t b) {
     vec3_t out;
-    out.x = a.x + b.x;
-    out.y = a.y + b.y;
-    out.z = a.z + b.z;
+    out.x = a.x - b.x;
+    out.y = a.y - b.y;
+    out.z = a.z - b.z;
     return out;
 }