diff options
author | Sergeanur <s.anureev@yandex.ua> | 2020-01-07 16:26:23 +0100 |
---|---|---|
committer | Sergeanur <s.anureev@yandex.ua> | 2020-01-07 16:26:40 +0100 |
commit | f7e962beaa9bb09629990a9fc8cd42f7ef29de7d (patch) | |
tree | be625fef86277d78ea20785f0055b377708f7d74 /src/audio/AudioManager.cpp | |
parent | CPlayerPed & CMenuManager (#286) (diff) | |
download | re3-f7e962beaa9bb09629990a9fc8cd42f7ef29de7d.tar re3-f7e962beaa9bb09629990a9fc8cd42f7ef29de7d.tar.gz re3-f7e962beaa9bb09629990a9fc8cd42f7ef29de7d.tar.bz2 re3-f7e962beaa9bb09629990a9fc8cd42f7ef29de7d.tar.lz re3-f7e962beaa9bb09629990a9fc8cd42f7ef29de7d.tar.xz re3-f7e962beaa9bb09629990a9fc8cd42f7ef29de7d.tar.zst re3-f7e962beaa9bb09629990a9fc8cd42f7ef29de7d.zip |
Diffstat (limited to 'src/audio/AudioManager.cpp')
-rw-r--r-- | src/audio/AudioManager.cpp | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/audio/AudioManager.cpp b/src/audio/AudioManager.cpp index abfbde00..d825fb89 100644 --- a/src/audio/AudioManager.cpp +++ b/src/audio/AudioManager.cpp @@ -8,7 +8,6 @@ #include "Automobile.h" #include "Boat.h" #include "Bridge.h" -#include "CProjectileInfo.h" #include "Camera.h" #include "DMAudio.h" #include "Entity.h" @@ -25,6 +24,8 @@ #include "Plane.h" #include "PlayerPed.h" #include "Pools.h" +#include "Projectile.h" +#include "ProjectileInfo.h" #include "Replay.h" #include "Stats.h" #include "SurfaceTable.h" @@ -6954,7 +6955,7 @@ cAudioManager::ProcessProjectiles() } m_sQueueSample.field_48 = 4.0; m_sQueueSample.field_76 = 3; - m_sQueueSample.m_vecPos = CProjectileInfo::ms_apProjectile[i].GetPosition(); + m_sQueueSample.m_vecPos = CProjectileInfo::ms_apProjectile[i]->GetPosition(); float distSquared = GetDistanceSquared(&m_sQueueSample.m_vecPos); if(distSquared < maxDist) { m_sQueueSample.m_fDistance = Sqrt(distSquared); |