Don't play landing sound on really small jumps
This commit is contained in:
1 parent
9208a7233f
commit
82d30b5abf
1 file changed
+1
-1
+1
-1
@@ -3001,7 +3001,7 @@ static void K_StretchPlayerGravity(player_t *p)
|
||||
I_Assert(p->mo != NULL);
|
||||
I_Assert(!P_MobjWasRemoved(p->mo));
|
||||
|
||||
if (p->mo->eflags & MFE_JUSTHITFLOOR && (cv_slamsound.value == 1))
|
||||
if (cv_slamsound.value == 1 && (p->mo->eflags & MFE_JUSTHITFLOOR) && p->mo->stretchslam > 4*mos)
|
||||
S_StartSound(p->mo, sfx_s3k4c);
|
||||
|
||||
if (!P_IsObjectOnGround(p->mo))
|
||||
|
||||
Reference in new issue
Block a user