Skip to content

Commit

Permalink
clamp volume to prevent distortion
Browse files Browse the repository at this point in the history
  • Loading branch information
timbergeron committed Oct 9, 2024
1 parent 630c663 commit 96107b5
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions Quake/snd_mix.c
Original file line number Diff line number Diff line change
Expand Up @@ -535,6 +535,8 @@ void SND_InitScaletable (void)
int i, j;
int scale;

sfxvolume.value = SDL_clamp(sfxvolume.value, 0.0f, 1.0f); // woods

for (i = 0; i < 32; i++)
{
if (muted) // woods #mute -- adapted from Fitzquake Mark V
Expand Down

0 comments on commit 96107b5

Please sign in to comment.