From 5696e204524a0c17eb43c904b97ff88a3f43cace Mon Sep 17 00:00:00 2001 From: MarcEricMartel Date: Thu, 7 Dec 2023 12:51:17 -0500 Subject: [PATCH] =?UTF-8?q?G=C3=A9riboire!?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- SQCSim2021/engine.cpp | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/SQCSim2021/engine.cpp b/SQCSim2021/engine.cpp index c39e2fc..b1bdb34 100644 --- a/SQCSim2021/engine.cpp +++ b/SQCSim2021/engine.cpp @@ -1290,16 +1290,16 @@ void Engine::Render(float elapsedTime) { //if (m_whoosh[x]) // m_whoosh[x]->drop(); //m_bullets[x] = nullptr; - m_whoosh[x] = nullptr; + //m_whoosh[x] = nullptr; break; } // else if (!m_whoosh[x]) { // m_whoosh[x] = m_audio.Create3DAudioObj(m_whoosh[x], AUDIO_PATH "noise.wav", m_bullets[x]->getPos(), m_bullets[x]->getVel(), true, (m_bullets[x]->getPos() - m_player.GetPosition()).Length()); // } - else { - Vector3f pos = m_bullets[x]->getPos(), vel = m_bullets[x]->getVel(); - m_audio.Render3DAudioObj(m_whoosh[x], pos, vel, 5 - (m_bullets[x]->getPos() - m_player.GetPosition()).Length()); - } + // else { + // Vector3f pos = m_bullets[x]->getPos(), vel = m_bullets[x]->getVel(); + // m_audio.Render3DAudioObj(m_whoosh[x], pos, vel, 5 - (m_bullets[x]->getPos() - m_player.GetPosition()).Length()); + // } } } }