diff --git a/SQCSim2021/engine.cpp b/SQCSim2021/engine.cpp index 106fac0..69eb44b 100644 --- a/SQCSim2021/engine.cpp +++ b/SQCSim2021/engine.cpp @@ -1443,14 +1443,15 @@ void Engine::Render(float elapsedTime) { if ((m_player.GetPosition().y < -1.7f || m_player.AmIDead()) && !died) { m_audio.Create3DAudioObj(m_scream, AUDIO_PATH "scream.wav", m_player.GetPOV(), m_player.GetVelocity(), false, m_sfxvolume); died = true; - } - if (m_player.GetPosition().y < -21.f || died) { - died = false; std::string user = m_player.m_username.append(" (Dead)"); m_player = Player(Vector3f(.5, CHUNK_SIZE_Y + 1.7f, .5), 0, 0); m_player.m_username = user; m_player.InflictDamage(-m_player.GetHP()); } + /*if (m_player.GetPosition().y < -21.f || died) { + died = false; + + }*/ m_time += elapsedTime;