From e4ce796542a1d939258945ee17fd4fe44d6eabe4 Mon Sep 17 00:00:00 2001 From: IronClawTrem Date: Fri, 27 Mar 2020 12:30:43 +0000 Subject: improve wallwalk when dropping from slanted surfaces --- src/game/bg_pmove.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/game/bg_pmove.c b/src/game/bg_pmove.c index 542b585..a23cd54 100644 --- a/src/game/bg_pmove.c +++ b/src/game/bg_pmove.c @@ -1958,7 +1958,7 @@ static void PM_GroundClimbTrace( void ) pm->ps->eFlags &= ~EF_WALLCLIMB; //just transided from ceiling to floor... apply delta correction - if( pm->ps->stats[ STAT_STATE ] & SS_WALLCLIMBINGCEILING ) + if( ( pm->ps->stats[ STAT_STATE ] & SS_WALLCLIMBINGCEILING ) || pm->ps->grapplePoint[2] < 0 ) { vec3_t forward, rotated, angles; @@ -2043,7 +2043,7 @@ static void PM_GroundTrace( void ) } //just transided from ceiling to floor... apply delta correction - if( pm->ps->stats[ STAT_STATE ] & SS_WALLCLIMBINGCEILING ) + if( ( pm->ps->stats[ STAT_STATE ] & SS_WALLCLIMBINGCEILING ) || pm->ps->grapplePoint[2] < 0 ) { vec3_t forward, rotated, angles; -- cgit