diff options
author | aap <aap@papnet.eu> | 2020-03-28 16:47:20 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-03-28 16:47:20 +0100 |
commit | a58bceb1a736dd76fbdaee8747276fe755755d1a (patch) | |
tree | dae35ada030479401faa42b0d518e460c1635406 /src/audio/AudioManager.cpp | |
parent | CCam fix (diff) | |
parent | WaterCannon uv macros (diff) | |
download | re3-a58bceb1a736dd76fbdaee8747276fe755755d1a.tar re3-a58bceb1a736dd76fbdaee8747276fe755755d1a.tar.gz re3-a58bceb1a736dd76fbdaee8747276fe755755d1a.tar.bz2 re3-a58bceb1a736dd76fbdaee8747276fe755755d1a.tar.lz re3-a58bceb1a736dd76fbdaee8747276fe755755d1a.tar.xz re3-a58bceb1a736dd76fbdaee8747276fe755755d1a.tar.zst re3-a58bceb1a736dd76fbdaee8747276fe755755d1a.zip |
Diffstat (limited to 'src/audio/AudioManager.cpp')
-rw-r--r-- | src/audio/AudioManager.cpp | 4 |
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); |