This commit is contained in:
Paul 2000-12-11 15:35:55 +00:00
parent cd381e1694
commit 1ed7bf8222

View File

@ -188,7 +188,9 @@ void CSoundMediator::think(int _frames)
// Fade to target volume
speed=(_frames*VOLUME_CHANGE_SPEED)>>10;
ASSERT(_frames!=0);
if(_frames==0)_frames=1;
speed=_frames*VOLUME_CHANGE_SPEED;
current=s_currentVolume;
target=s_targetVolume;
dirty=s_volumeDirty;