From 344f803c0fa88083e3597438cf0cdf86d5d3d486 Mon Sep 17 00:00:00 2001 From: Thilo Schulz Date: Tue, 28 Jun 2011 08:28:12 +0000 Subject: 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. --- src/qcommon/q_shared.h | 2 ++ 1 file changed, 2 insertions(+) (limited to 'src/qcommon') 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 ); -- cgit