diff options
author | Tim Angus <tim@ngus.net> | 2004-02-08 04:21:15 +0000 |
---|---|---|
committer | Tim Angus <tim@ngus.net> | 2004-02-08 04:21:15 +0000 |
commit | 055a13bec0d3d74077cec23f41c50dc71f4bf0ef (patch) | |
tree | 4d233e092851ac95dc08c4a2c825dd860d1c055f /src/game/bg_misc.c | |
parent | 062269e2abb237a37d9a33a6de46974a599408b4 (diff) |
* Fixed dropping off the ceiling as a wall walker
* When dropping from the ceiling cg_wwSmoothTime is multiplied by 1.5
Diffstat (limited to 'src/game/bg_misc.c')
-rw-r--r-- | src/game/bg_misc.c | 8 |
1 files changed, 2 insertions, 6 deletions
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; |