summaryrefslogtreecommitdiff
path: root/src/qcommon/q_shared.h
diff options
context:
space:
mode:
authorTony J. White <tjw@tjw.org>2006-12-09 05:12:31 +0000
committerTony J. White <tjw@tjw.org>2006-12-09 05:12:31 +0000
commit74db521aeb93d7e706d9e3745dd3462e8d5f90eb (patch)
treefa6d52f0722bb48fa57612f9bf91aee5c81c0721 /src/qcommon/q_shared.h
parent3b9e1e27a21cef8b3b1fa0a14c47299622e29609 (diff)
* (bug 2937) adds cg_projectileNudge. This is originally from Neil Toronto's
unlagged project. kevlarman added automatic latency detection so the nudge time doesn't have to be set manually. Defaults to 1 (on).
Diffstat (limited to 'src/qcommon/q_shared.h')
-rw-r--r--src/qcommon/q_shared.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/qcommon/q_shared.h b/src/qcommon/q_shared.h
index f7a8b43e..3f0ae9a2 100644
--- a/src/qcommon/q_shared.h
+++ b/src/qcommon/q_shared.h
@@ -426,6 +426,9 @@ void ByteToDir( int b, vec3_t dir );
#define VectorCopy(a,b) ((b)[0]=(a)[0],(b)[1]=(a)[1],(b)[2]=(a)[2])
#define VectorScale(v, s, o) ((o)[0]=(v)[0]*(s),(o)[1]=(v)[1]*(s),(o)[2]=(v)[2]*(s))
#define VectorMA(v, s, b, o) ((o)[0]=(v)[0]+(b)[0]*(s),(o)[1]=(v)[1]+(b)[1]*(s),(o)[2]=(v)[2]+(b)[2]*(s))
+#define VectorLerp( f, s, e, r ) ((r)[0]=(s)[0]+(f)*((e)[0]-(s)[0]),\
+ (r)[1]=(s)[1]+(f)*((e)[1]-(s)[1]),\
+ (r)[2]=(s)[2]+(f)*((e)[2]-(s)[2]))
#else