summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRoman Masanin <36927roma@gmail.com>2020-11-08 20:33:30 +0100
committerRoman Masanin <36927roma@gmail.com>2020-11-08 20:33:30 +0100
commitfb2173c3964dcb6916399dffb9ff44c81863d11d (patch)
treeddb20a19274a3518ae4c46f4737f8f55d24da4e4
parentmarked stupied code(dotProduct and AudioEvents) (diff)
downloadre3-fb2173c3964dcb6916399dffb9ff44c81863d11d.tar
re3-fb2173c3964dcb6916399dffb9ff44c81863d11d.tar.gz
re3-fb2173c3964dcb6916399dffb9ff44c81863d11d.tar.bz2
re3-fb2173c3964dcb6916399dffb9ff44c81863d11d.tar.lz
re3-fb2173c3964dcb6916399dffb9ff44c81863d11d.tar.xz
re3-fb2173c3964dcb6916399dffb9ff44c81863d11d.tar.zst
re3-fb2173c3964dcb6916399dffb9ff44c81863d11d.zip
-rw-r--r--src/audio/AudioLogic.cpp18
1 files changed, 18 insertions, 0 deletions
diff --git a/src/audio/AudioLogic.cpp b/src/audio/AudioLogic.cpp
index 725149a2..f51064aa 100644
--- a/src/audio/AudioLogic.cpp
+++ b/src/audio/AudioLogic.cpp
@@ -3153,6 +3153,9 @@ cAudioManager::ProcessVehicleOneShots(cVehicleParams& params)
if (0.2f * m_sQueueSample.m_fSoundIntensity > m_sQueueSample.m_fDistance) {
m_sQueueSample.m_bIs2D = true;
m_sQueueSample.m_nOffset = 0;
+#ifdef THIS_IS_STUPID
+ goto AddSample;
+#else
AddSampleToRequestedQueue();
m_sQueueSample.m_nOffset = 127;
m_sQueueSample.m_nSampleIndex++;
@@ -3162,11 +3165,26 @@ cAudioManager::ProcessVehicleOneShots(cVehicleParams& params)
m_sQueueSample.m_bRequireReflection = 0;
AddSampleToRequestedQueue();
continue;
+#endif
}
isHeli = false;
}
m_sQueueSample.m_bIs2D = false;
+#ifdef THIS_IS_STUPID
+AddSample:
AddSampleToRequestedQueue();
+ if (isHeli) {
+ m_sQueueSample.m_nOffset = 127;
+ m_sQueueSample.m_nSampleIndex++;
+ m_sQueueSample.m_nCounter = GunIndex++;
+ if (GunIndex > 58)
+ GunIndex = 53;
+ m_sQueueSample.m_bRequireReflection = 0;
+ AddSampleToRequestedQueue();
+ }
+#else
+ AddSampleToRequestedQueue();
+#endif
continue;
}