From 7badb5d925be29c6fec7cafce7b2b615f33df8e3 Mon Sep 17 00:00:00 2001 From: James R Date: Sun, 11 Apr 2021 02:32:26 -0700 Subject: [PATCH] Stair jank sound effects Big meaty sfx, or a shorter one when quickly stepping. --- src/p_map.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/p_map.c b/src/p_map.c index ba10a713a..f9eac42b8 100644 --- a/src/p_map.c +++ b/src/p_map.c @@ -2637,6 +2637,10 @@ boolean P_TryMove(mobj_t *thing, fixed_t x, fixed_t y, boolean allowdropoff) if (stairjank > stairstep && thing->player) { + /* use a shorter sound if not two tics have passed + * since the last step */ + S_StartSound(thing, thing->player->stairjank + >= 16 ? sfx_s23b : sfx_s268); thing->player->stairjank = 17; }