From d48a8da40c731f903f7e9898677b807be1665b4f Mon Sep 17 00:00:00 2001 From: Mario Date: Sat, 7 Mar 2020 07:10:13 +1000 Subject: [PATCH] Fix being able to double jump after sliding on a slick surface --- qcsrc/common/physics/player.qc | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/qcsrc/common/physics/player.qc b/qcsrc/common/physics/player.qc index 16cb27aec..5dce802a0 100644 --- a/qcsrc/common/physics/player.qc +++ b/qcsrc/common/physics/player.qc @@ -359,7 +359,7 @@ bool PlayerJump(entity this) } if (!doublejump) - if (!IS_ONGROUND(this) && !IS_ONSLICK(this)) + if (!IS_ONGROUND(this)) return IS_JUMP_HELD(this); if(PHYS_TRACK_CANJUMP(this)) @@ -693,11 +693,7 @@ void PM_check_slick(entity this) trace_dphitq3surfaceflags = 0; tracebox(this.origin, this.mins, this.maxs, this.origin - '0 0 1', MOVE_NOMONSTERS, this); if (trace_dphitq3surfaceflags & Q3SURFACEFLAG_SLICK) - { - if(PHYS_SLICK_APPLYGRAVITY(this)) - UNSET_ONGROUND(this); SET_ONSLICK(this); - } else UNSET_ONSLICK(this); } -- 2.39.2