summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorIronClawTrem <louie.nutman@gmail.com>2020-03-27 12:30:43 +0000
committerIronClawTrem <louie.nutman@gmail.com>2020-03-27 12:30:43 +0000
commite4ce796542a1d939258945ee17fd4fe44d6eabe4 (patch)
tree9ad14f8975bafdfcc1f43d0b2b64bfe12deb3910 /src
parentf8defe0cf650088ff594082577e283fc77f4abbe (diff)
improve wallwalk when dropping from slanted surfaces
Diffstat (limited to 'src')
-rw-r--r--src/game/bg_pmove.c4
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;