diff options
author | IronClawTrem <louie.nutman@gmail.com> | 2020-03-27 12:30:43 +0000 |
---|---|---|
committer | IronClawTrem <louie.nutman@gmail.com> | 2020-03-27 12:30:43 +0000 |
commit | e4ce796542a1d939258945ee17fd4fe44d6eabe4 (patch) | |
tree | 9ad14f8975bafdfcc1f43d0b2b64bfe12deb3910 /src/game | |
parent | f8defe0cf650088ff594082577e283fc77f4abbe (diff) |
improve wallwalk when dropping from slanted surfaces
Diffstat (limited to 'src/game')
-rw-r--r-- | src/game/bg_pmove.c | 4 |
1 files 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; |