summaryrefslogtreecommitdiff
path: root/src/game/q_shared.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/game/q_shared.h')
-rw-r--r--src/game/q_shared.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/game/q_shared.h b/src/game/q_shared.h
index 64ef9f30..69496267 100644
--- a/src/game/q_shared.h
+++ b/src/game/q_shared.h
@@ -634,6 +634,7 @@ typedef struct {
#define VectorNegate(a,b) ((b)[0]=-(a)[0],(b)[1]=-(a)[1],(b)[2]=-(a)[2])
#define VectorSet(v, x, y, z) ((v)[0]=(x), (v)[1]=(y), (v)[2]=(z))
#define Vector4Copy(a,b) ((b)[0]=(a)[0],(b)[1]=(a)[1],(b)[2]=(a)[2],(b)[3]=(a)[3])
+#define Vector4Add(a,b,c) ((c)[0]=(a)[0]+(b)[0],(c)[1]=(a)[1]+(b)[1],(c)[2]=(a)[2]+(b)[2],(c)[3]=(a)[3]+(b)[3])
#define SnapVector(v) {v[0]=((int)(v[0]));v[1]=((int)(v[1]));v[2]=((int)(v[2]));}
// just in case you do't want to use the macros