summaryrefslogtreecommitdiffstats
path: root/src/audio
diff options
context:
space:
mode:
authorFire-Head <Fire-Head@users.noreply.github.com>2020-03-28 15:02:44 +0100
committerFire-Head <Fire-Head@users.noreply.github.com>2020-03-28 15:02:44 +0100
commit3366cd0ff80c7770ef280858992b7c707f0890d2 (patch)
tree1075a403ebeafc73f7c4eddf671d72d761921f10 /src/audio
parentMerge pull request #356 from blingu/master (diff)
downloadre3-3366cd0ff80c7770ef280858992b7c707f0890d2.tar
re3-3366cd0ff80c7770ef280858992b7c707f0890d2.tar.gz
re3-3366cd0ff80c7770ef280858992b7c707f0890d2.tar.bz2
re3-3366cd0ff80c7770ef280858992b7c707f0890d2.tar.lz
re3-3366cd0ff80c7770ef280858992b7c707f0890d2.tar.xz
re3-3366cd0ff80c7770ef280858992b7c707f0890d2.tar.zst
re3-3366cd0ff80c7770ef280858992b7c707f0890d2.zip
Diffstat (limited to 'src/audio')
-rw-r--r--src/audio/AudioManager.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/audio/AudioManager.cpp b/src/audio/AudioManager.cpp
index 539c9e91..930c03a6 100644
--- a/src/audio/AudioManager.cpp
+++ b/src/audio/AudioManager.cpp
@@ -7533,8 +7533,8 @@ cAudioManager::ProcessVehicleSkidding(cVehicleParams *params)
void cAudioManager::ProcessWaterCannon(int32)
{
for(int32 i = 0; i < NUM_WATERCANNONS; i++) {
- if(aCannons[i].m_nId) {
- m_sQueueSample.m_vecPos = aCannons[0].m_avecPos[aCannons[i].m_wIndex];
+ if(CWaterCannons::aCannons[i].m_nId) {
+ m_sQueueSample.m_vecPos = CWaterCannons::aCannons[0].m_avecPos[CWaterCannons::aCannons[i].m_nCur];
float distSquared = GetDistanceSquared(&m_sQueueSample.m_vecPos);
if(distSquared < 900.f) {
m_sQueueSample.m_fDistance = Sqrt(distSquared);