- fixed: timidity_mastervolume didn't notify the song if the volume had to be clamped.

SVN r792 (trunk)
This commit is contained in:
Christoph Oelckers 2008-03-09 16:30:36 +00:00
parent 1e418576da
commit 9b6d764512
2 changed files with 3 additions and 1 deletions

View file

@ -503,4 +503,6 @@ CCMD(testmusicvol)
relative_volume = (float)strtod(argv[1], NULL);
snd_musicvolume.Callback();
}
else
Printf("Current relative volume is %1.2f\n", relative_volume);
}

View file

@ -64,7 +64,7 @@ CUSTOM_CVAR (Float, timidity_mastervolume, 1.0f, CVAR_ARCHIVE|CVAR_GLOBALCONFIG)
self = 0.f;
else if (self > 4.f)
self = 4.f;
else if (currSong != NULL)
if (currSong != NULL)
currSong->TimidityVolumeChanged();
}