From f564e37544bdbce7a1b5b88210c323bf37206c7b Mon Sep 17 00:00:00 2001 From: MarcEricMartel Date: Sat, 16 Dec 2023 12:32:54 -0500 Subject: [PATCH] YYYAAAAAAARRRGGHH? --- SQCSim2021/engine.cpp | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) 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;