This commit is contained in:
parent
cd381e1694
commit
1ed7bf8222
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user