summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorTim Angus <tim@ngus.net>2003-10-03 19:56:07 +0000
committerTim Angus <tim@ngus.net>2003-10-03 19:56:07 +0000
commit924324982295c028f96f95b01e8463112b54da3b (patch)
tree726d375c3050798203bef5b1480b3ab866bd774b /src
parent4ee9c29e78a84f6f3e80813b124aa045617633e6 (diff)
* Fixed wall walking bugs evident on starirs2
Diffstat (limited to 'src')
-rw-r--r--src/game/bg_pmove.c5
1 files 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