diff options
author | Sergeanur <s.anureev@yandex.ua> | 2020-04-14 16:13:38 +0200 |
---|---|---|
committer | Sergeanur <s.anureev@yandex.ua> | 2020-04-14 16:13:38 +0200 |
commit | 9a7b833aa5b0ed1157ba17f50ea3e3723418f183 (patch) | |
tree | cc026c45202d3566cd210a346db0db9eac64bf01 /src/audio/AudioCollision.cpp | |
parent | Merge pull request #414 from ShFil119/audio17 (diff) | |
download | re3-9a7b833aa5b0ed1157ba17f50ea3e3723418f183.tar re3-9a7b833aa5b0ed1157ba17f50ea3e3723418f183.tar.gz re3-9a7b833aa5b0ed1157ba17f50ea3e3723418f183.tar.bz2 re3-9a7b833aa5b0ed1157ba17f50ea3e3723418f183.tar.lz re3-9a7b833aa5b0ed1157ba17f50ea3e3723418f183.tar.xz re3-9a7b833aa5b0ed1157ba17f50ea3e3723418f183.tar.zst re3-9a7b833aa5b0ed1157ba17f50ea3e3723418f183.zip |
Diffstat (limited to 'src/audio/AudioCollision.cpp')
-rw-r--r-- | src/audio/AudioCollision.cpp | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/src/audio/AudioCollision.cpp b/src/audio/AudioCollision.cpp index 99c87a6a..fecd079e 100644 --- a/src/audio/AudioCollision.cpp +++ b/src/audio/AudioCollision.cpp @@ -10,6 +10,22 @@ const int CollisionSoundIntensity = 60; +cAudioCollisionManager::cAudioCollisionManager() +{ + m_sQueue.m_pEntity1 = nil; + m_sQueue.m_pEntity2 = nil; + m_sQueue.m_bSurface1 = SURFACE_DEFAULT; + m_sQueue.m_bSurface2 = SURFACE_DEFAULT; + m_sQueue.m_fIntensity2 = 0.0f; + m_sQueue.m_fIntensity1 = 0.0f; + m_sQueue.m_vecPosition = CVector(0.0f, 0.0f, 0.0f); + + for (int i = 0; i < NUMAUDIOCOLLISIONS; i++) + m_bIndicesTable[i] = NUMAUDIOCOLLISIONS; + + m_bCollisionsInQueue = 0; +} + void cAudioCollisionManager::AddCollisionToRequestedQueue() { |