summaryrefslogtreecommitdiffstats
path: root/src/audio
diff options
context:
space:
mode:
authorSergeanur <s.anureev@yandex.ua>2020-02-07 20:38:38 +0100
committerSergeanur <s.anureev@yandex.ua>2020-02-07 20:40:10 +0100
commitd1700b32570da625e6d8b0605b792cfac79e7d7c (patch)
tree4f3985c89136053fbb4b59326a75adf022360bfa /src/audio
parentcMusicManager (diff)
downloadre3-d1700b32570da625e6d8b0605b792cfac79e7d7c.tar
re3-d1700b32570da625e6d8b0605b792cfac79e7d7c.tar.gz
re3-d1700b32570da625e6d8b0605b792cfac79e7d7c.tar.bz2
re3-d1700b32570da625e6d8b0605b792cfac79e7d7c.tar.lz
re3-d1700b32570da625e6d8b0605b792cfac79e7d7c.tar.xz
re3-d1700b32570da625e6d8b0605b792cfac79e7d7c.tar.zst
re3-d1700b32570da625e6d8b0605b792cfac79e7d7c.zip
Diffstat (limited to '')
-rw-r--r--src/audio/AudioManager.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/audio/AudioManager.cpp b/src/audio/AudioManager.cpp
index 9cd22533..89abee8d 100644
--- a/src/audio/AudioManager.cpp
+++ b/src/audio/AudioManager.cpp
@@ -8141,7 +8141,7 @@ cAudioManager::AdjustSamplesVolume()
for(int i = 0; i < m_bSampleRequestQueuesStatus[m_bActiveSampleQueue]; i++) {
tSound* pSample = &m_asSamples[m_bActiveSampleQueue][m_abSampleQueueIndexTable[m_bActiveSampleQueue][i] + 1];
- if(!pSample->m_bBankIndex) // all non-speech sounds on PC
+ if(!pSample->m_bIsDistant)
pSample->m_bEmittingVolume = ComputeEmittingVolume(
pSample->m_bEmittingVolume, pSample->m_fSoundIntensity, pSample->m_fDistance);
}