Skip to content

Commit

Permalink
Landing sound fix
Browse files Browse the repository at this point in the history
  • Loading branch information
darkshade9 committed Aug 27, 2024
1 parent 3d64557 commit 6e24103
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 4 deletions.
2 changes: 1 addition & 1 deletion meson.build
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ project('q2pro', 'c',
meson_version: '>= 0.59.0',
default_options: [
'c_std=c11',
'buildtype=debug',
'buildtype=release',
],
)

Expand Down
2 changes: 1 addition & 1 deletion src/client/entities.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down
2 changes: 0 additions & 2 deletions src/client/tent.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
Expand Down

0 comments on commit 6e24103

Please sign in to comment.