summaryrefslogtreecommitdiff
path: root/src/audio
diff options
context:
space:
mode:
authorSergeanur <s.anureev@yandex.ua>2020-11-08 15:00:54 +0200
committerSergeanur <s.anureev@yandex.ua>2020-11-08 15:00:54 +0200
commita2e0373d225b7826375939e74deff7d6bb6a32ef (patch)
treeb63cd9cc269c5de65072b834c965d63613deee54 /src/audio
parent7ede8685ecd432aea1379d2377bdecc3159a2c79 (diff)
Pickups fix
Diffstat (limited to 'src/audio')
-rw-r--r--src/audio/AudioLogic.cpp5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/audio/AudioLogic.cpp b/src/audio/AudioLogic.cpp
index 4c040efb..4822fd04 100644
--- a/src/audio/AudioLogic.cpp
+++ b/src/audio/AudioLogic.cpp
@@ -7201,7 +7201,10 @@ cPedComments::Process()
AudioManager.m_sQueueSample.m_bRequireReflection = true;
AudioManager.m_sQueueSample.m_bIs2D = false;
#ifdef FIX_BUGS
- AudioManager.m_sQueueSample.m_bIs2D = sampleIndex >= 8694 && sampleIndex < TOTAL_AUDIO_SAMPLES; // check if player sfx, TODO: enum
+ if (sampleIndex >= 8694 && sampleIndex < TOTAL_AUDIO_SAMPLES) { // check if player sfx, TODO: enum
+ AudioManager.m_sQueueSample.m_bIs2D = true;
+ AudioManager.m_sQueueSample.m_nOffset = 63;
+ }
#endif // FIX_BUGS
AudioManager.m_sQueueSample.m_nFrequency =
SampleManager.GetSampleBaseFrequency(AudioManager.m_sQueueSample.m_nSampleIndex) + AudioManager.RandomDisplacement(750);