diff --git a/SQCSim2021/engine.cpp b/SQCSim2021/engine.cpp index 57dd6ff..a7ca3d4 100644 --- a/SQCSim2021/engine.cpp +++ b/SQCSim2021/engine.cpp @@ -309,6 +309,8 @@ int Engine::GetCountdown(float elapsedTime) { m_countdown = m_time + COUNTDOWN; m_resetcountdown = false; } + if (m_countdown < m_time) + Stop(); if(!m_stopcountdown) m_time += elapsedTime; return m_countdown - (int)m_time;