From e9e2a56be654de843812f52524e94ba6d9d80f6e Mon Sep 17 00:00:00 2001 From: MarcEricMartel Date: Thu, 7 Dec 2023 12:21:21 -0500 Subject: [PATCH] OOPS I DID IT AGAIN. I PLAYED WITH THE CODE, GOT LOST IN THE MORT. --- SQCSim2021/engine.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/SQCSim2021/engine.cpp b/SQCSim2021/engine.cpp index 27d4136..ff183ea 100644 --- a/SQCSim2021/engine.cpp +++ b/SQCSim2021/engine.cpp @@ -1315,11 +1315,11 @@ void Engine::Render(float elapsedTime) { InstantDamage(); } static bool died = false; - if ((m_player.GetPosition().y < 1.7f || m_player.AmIDead()) && !died) { + 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, 1.f); died = true; } - if (m_player.GetPosition().y < 15.f || died) { + if (m_player.GetPosition().y < -15.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);