From 6e24103124a3228154d87bb32ba8eb512c2d61cd Mon Sep 17 00:00:00 2001 From: Aaron Dean <8dino2@gmail.com> Date: Tue, 27 Aug 2024 12:57:00 -0400 Subject: [PATCH] Landing sound fix --- meson.build | 2 +- src/client/entities.c | 2 +- src/client/tent.c | 2 -- 3 files changed, 2 insertions(+), 4 deletions(-) diff --git a/meson.build b/meson.build index 9c855ac2f..a1232d792 100644 --- a/meson.build +++ b/meson.build @@ -4,7 +4,7 @@ project('q2pro', 'c', meson_version: '>= 0.59.0', default_options: [ 'c_std=c11', - 'buildtype=debug', + 'buildtype=release', ], ) diff --git a/src/client/entities.c b/src/client/entities.c index b0a1d6a4a..66236011b 100644 --- a/src/client/entities.c +++ b/src/client/entities.c @@ -235,7 +235,7 @@ static void parse_entity_event(int number) CL_PlayFootstepSfx(FOOTSTEP_ID_LADDER, number, 0.5f, ATTN_IDLE); break; case EV_FALLSHORT: - if (cl_enhanced_footsteps->value) { + if (!cl_enhanced_footsteps->value) { S_StartSound(NULL, number, CHAN_AUTO, cl_sfx_landing[0], 1, ATTN_NORM, 0); } else { S_StartSound(NULL, number, CHAN_BODY, cl_sfx_landing[Q_rand() % 8], 1, ATTN_NORM, 0); diff --git a/src/client/tent.c b/src/client/tent.c index 98d33c2f3..90dca1b2d 100644 --- a/src/client/tent.c +++ b/src/client/tent.c @@ -179,8 +179,6 @@ void CL_PlayFootstepSfx(int step_id, int entnum, float volume, float attenuation footstep_sfx = sfx->sfx[(sfx_num + 1) % sfx->num_sfx]; } - Com_Printf("Playing footstep sound %i\n", footstep_sfx); - S_StartSound(NULL, entnum, CHAN_BODY, footstep_sfx, volume, attenuation, 0); cl_last_footstep = footstep_sfx; }