diff options
author | Sergeanur <s.anureev@yandex.ua> | 2021-07-26 03:18:41 +0200 |
---|---|---|
committer | Sergeanur <s.anureev@yandex.ua> | 2021-07-26 03:34:55 +0200 |
commit | a064b3a687b6ba4b112eaf1e69738b27358baabf (patch) | |
tree | b2c214a4b9d27e10d99264b9d3ac742db9d202e2 /src/audio/AudioCollision.h | |
parent | Fix aiming with flamethrower with PC controls (diff) | |
download | re3-a064b3a687b6ba4b112eaf1e69738b27358baabf.tar re3-a064b3a687b6ba4b112eaf1e69738b27358baabf.tar.gz re3-a064b3a687b6ba4b112eaf1e69738b27358baabf.tar.bz2 re3-a064b3a687b6ba4b112eaf1e69738b27358baabf.tar.lz re3-a064b3a687b6ba4b112eaf1e69738b27358baabf.tar.xz re3-a064b3a687b6ba4b112eaf1e69738b27358baabf.tar.zst re3-a064b3a687b6ba4b112eaf1e69738b27358baabf.zip |
Diffstat (limited to 'src/audio/AudioCollision.h')
-rw-r--r-- | src/audio/AudioCollision.h | 23 |
1 files changed, 21 insertions, 2 deletions
diff --git a/src/audio/AudioCollision.h b/src/audio/AudioCollision.h index 0a058916..a201d500 100644 --- a/src/audio/AudioCollision.h +++ b/src/audio/AudioCollision.h @@ -17,7 +17,18 @@ public: float m_fDistance; int32 m_nBaseVolume; - // no methods + cAudioCollision() { Reset(); } + + void Reset() + { + m_pEntity1 = nil; + m_pEntity2 = nil; + m_bSurface1 = 0; + m_bSurface2 = 0; + m_fIntensity1 = m_fIntensity2 = 0.0f; + m_vecPosition = CVector(0.0f, 0.0f, 0.0f); + m_fDistance = 0.0f; + } }; VALIDATE_SIZE(cAudioCollision, 40); @@ -31,7 +42,15 @@ public: uint8 m_bCollisionsInQueue; cAudioCollision m_sQueue; - cAudioCollisionManager(); + cAudioCollisionManager() + { + m_sQueue.Reset(); + + for(int i = 0; i < NUMAUDIOCOLLISIONS; i++) + m_bIndicesTable[i] = NUMAUDIOCOLLISIONS; + + m_bCollisionsInQueue = 0; + } void AddCollisionToRequestedQueue(); }; |