From 59e146a1be41322a8164b271ffc76396fce3e08b Mon Sep 17 00:00:00 2001 From: Michael Levin Date: Sat, 3 Oct 2009 11:32:56 +0000 Subject: * A new (256x256) version of Garoth's creep texture * Hooray for physics! 0 = (k v_i)^2 + 2ad --> k^2 v_i^2 / 2a = d, i.e. the minijump scale is sqrt(1/2) for a half-jump * Oops, forgot to store/restore computed origin for cached buildable cap-traces * Seeing multiple marked players will not mess up the marker orientations anymore * Fixed warnings and increased range of squad marking to player crosshair distance --- src/cgame/cg_buildable.c | 2 ++ 1 file changed, 2 insertions(+) (limited to 'src/cgame/cg_buildable.c') diff --git a/src/cgame/cg_buildable.c b/src/cgame/cg_buildable.c index 8f4c2e5c..45f1e8dd 100644 --- a/src/cgame/cg_buildable.c +++ b/src/cgame/cg_buildable.c @@ -1298,6 +1298,7 @@ void CG_Buildable( centity_t *cent ) VectorCopy( cent->buildableCache.axis[ 0 ], ent.axis[ 0 ] ); VectorCopy( cent->buildableCache.axis[ 1 ], ent.axis[ 1 ] ); VectorCopy( cent->buildableCache.axis[ 2 ], ent.axis[ 2 ] ); + VectorCopy( cent->buildableCache.origin, ent.origin ); } else { @@ -1307,6 +1308,7 @@ void CG_Buildable( centity_t *cent ) VectorCopy( ent.axis[ 0 ], cent->buildableCache.axis[ 0 ] ); VectorCopy( ent.axis[ 1 ], cent->buildableCache.axis[ 1 ] ); VectorCopy( ent.axis[ 2 ], cent->buildableCache.axis[ 2 ] ); + VectorCopy( ent.origin, cent->buildableCache.origin ); VectorCopy( cent->lerpOrigin, cent->buildableCache.cachedOrigin ); VectorCopy( surfNormal, cent->buildableCache.cachedNormal ); } -- cgit