This commit is contained in:
MarcEricMartel
2021-12-08 16:29:36 -05:00
parent 8e2169420e
commit 9b56a9b4a5
6 changed files with 10 additions and 13 deletions

View File

@@ -259,7 +259,7 @@ void Engine::Render(float elapsedTime) {
if (m_wireframe)
glPolygonMode(GL_FRONT_AND_BACK, GL_LINE);
static bool fell = false;
static bool fell = false;
if (m_player.GetPosition().y < 1.7f && !fell) {
m_audio.Create3DAudioObj(m_scream, AUDIO_PATH "scream.wav", m_player.GetPOV(), m_player.GetVelocity(), 1.f);
fell = true;