From 924324982295c028f96f95b01e8463112b54da3b Mon Sep 17 00:00:00 2001 From: Tim Angus Date: Fri, 3 Oct 2003 19:56:07 +0000 Subject: * Fixed wall walking bugs evident on starirs2 --- src/game/bg_pmove.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/game/bg_pmove.c b/src/game/bg_pmove.c index 8bac27f5..3703cc86 100644 --- a/src/game/bg_pmove.c +++ b/src/game/bg_pmove.c @@ -1769,8 +1769,9 @@ static void PM_GroundClimbTrace( void ) if( rTtANGrTsTt > 32768 ) rTtANGrTsTt -= 32768; - //set the correction angle - if( traceCROSSsurf[ 2 ] <= 0.0f ) + CrossProduct( refTOtrace, refTOsurfTOtrace, tempVec ); + VectorNormalize( tempVec ); + if( DotProduct( trace.plane.normal, tempVec ) > 0.0f ) rTtANGrTsTt = -rTtANGrTsTt; //phew! - correct the angle -- cgit