Try to fix rpg bug

This commit is contained in:
Filip Gawin 2019-07-21 12:39:22 +02:00
parent 6cf4a6af6c
commit b00a92b20a

View file

@ -172,9 +172,7 @@ cAudioManager::AddReflectionsToRequestedQueue()
reflectionDistance = m_afReflectionsDistances[i]; reflectionDistance = m_afReflectionsDistances[i];
if(reflectionDistance > 0.0f && reflectionDistance < 100.f && if(reflectionDistance > 0.0f && reflectionDistance < 100.f &&
reflectionDistance < m_sQueueSample.m_fSoundIntensity) { reflectionDistance < m_sQueueSample.m_fSoundIntensity) {
m_sQueueSample.m_bLoopsRemaining = m_sQueueSample.m_bLoopsRemaining = (reflectionDistance * 500.f / 1029.f);
(reflectionDistance *
0.38873f); // @todo assert value, here used from VC
if(m_sQueueSample.m_bLoopsRemaining > 5u) { if(m_sQueueSample.m_bLoopsRemaining > 5u) {
m_sQueueSample.m_fDistance = m_afReflectionsDistances[i]; m_sQueueSample.m_fDistance = m_afReflectionsDistances[i];
m_sQueueSample.m_bEmittingVolume = emittingVolume; m_sQueueSample.m_bEmittingVolume = emittingVolume;