From 055a13bec0d3d74077cec23f41c50dc71f4bf0ef Mon Sep 17 00:00:00 2001 From: Tim Angus Date: Sun, 8 Feb 2004 04:21:15 +0000 Subject: * Fixed dropping off the ceiling as a wall walker * When dropping from the ceiling cg_wwSmoothTime is multiplied by 1.5 --- src/game/bg_misc.c | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) (limited to 'src/game/bg_misc.c') diff --git a/src/game/bg_misc.c b/src/game/bg_misc.c index 413ab89f..de83ee5f 100644 --- a/src/game/bg_misc.c +++ b/src/game/bg_misc.c @@ -4656,14 +4656,10 @@ qboolean BG_rotateAxis( vec3_t surfNormal, vec3_t inAxis[ 3 ], VectorNormalize( xNormal ); } - //if we're a wall climber.. and we're climbing rotate the axis + //can't rotate with no rotation vector if( VectorLength( xNormal ) != 0.0f ) { - //if the normal pointing straight down then the rotAngle will always be 180deg - if( surfNormal[ 2 ] == -1.0f ) - rotAngle = 180.0f; - else - rotAngle = RAD2DEG( acos( DotProduct( localNormal, refNormal ) ) ); + rotAngle = RAD2DEG( acos( DotProduct( localNormal, refNormal ) ) ); if( inverse ) rotAngle = -rotAngle; -- cgit