summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorThilo Schulz <arny@ats.s.bawue.de>2011-06-28 08:28:12 +0000
committerTim Angus <tim@ngus.net>2013-01-10 21:54:33 +0000
commit344f803c0fa88083e3597438cf0cdf86d5d3d486 (patch)
tree2e24456b139c9a51e5c586935012867ef195da3a /src
parent50cc2275674900a7fe89ba8f3104e6244b397570 (diff)
More color fixes for railgun
Show other players' railgun color and their firetime state. Show snapshot client's color on world item models of railgun. Fix the impact mark using color2 (spiral) rather than color1 (beam). Credits go to Ensiform and Harekiet for the refire portion.
Diffstat (limited to 'src')
-rw-r--r--src/qcommon/q_shared.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/qcommon/q_shared.h b/src/qcommon/q_shared.h
index 9d15d9c5..e1533b92 100644
--- a/src/qcommon/q_shared.h
+++ b/src/qcommon/q_shared.h
@@ -558,6 +558,8 @@ typedef struct {
(v)[1] = (int)(v)[1],\
(v)[2] = (int)(v)[2] )
+#define Byte4Copy(a,b) ((b)[0]=(a)[0],(b)[1]=(a)[1],(b)[2]=(a)[2],(b)[3]=(a)[3])
+
// just in case you do't want to use the macros
vec_t _DotProduct( const vec3_t v1, const vec3_t v2 );
void _VectorSubtract( const vec3_t veca, const vec3_t vecb, vec3_t out );