shutdown sur fin countdown

This commit is contained in:
Frederic Leger 2023-09-25 15:38:37 -04:00
parent 703b432fb7
commit 47d7fbfc27

View File

@ -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;