This commit is contained in:
Nikolay Korolev 2020-05-31 23:16:24 +03:00
parent 815d3e0f61
commit 0631bd9d89

View file

@ -1319,7 +1319,7 @@ cSampleManager::SetStreamedVolumeAndPan(uint8 nVolume, uint8 nPan, uint8 nEffect
{ {
if ( nEffectFlag ) { if ( nEffectFlag ) {
if ( nStream == 1 ) // TODO(MIAMI): || nStream == 2 when we have second mission channel? if ( nStream == 1 ) // TODO(MIAMI): || nStream == 2 when we have second mission channel?
stream->SetVolume(128*nVolume*m_nEffectsVolume >> 14) stream->SetVolume(128*nVolume*m_nEffectsVolume >> 14);
else else
stream->SetVolume(m_nEffectsFadeVolume*nVolume*m_nEffectsVolume >> 14); stream->SetVolume(m_nEffectsFadeVolume*nVolume*m_nEffectsVolume >> 14);
} }