diff --git a/SQCSim2021/engine.cpp b/SQCSim2021/engine.cpp index 69eb44b..141f100 100644 --- a/SQCSim2021/engine.cpp +++ b/SQCSim2021/engine.cpp @@ -1410,19 +1410,19 @@ void Engine::Render(float elapsedTime) { m_chunkmod = nullptr; } m_bullets[x] = nullptr; - if (m_whoosh[x]){ + /*if (m_whoosh[x]){ m_whoosh[x]->drop(); m_whoosh[x] = nullptr; - } + }*/ break; } - else if (!m_whoosh[x]) { + /*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, m_sfxvolume); - } + }*/ } } }