shutdown sur fin countdown
This commit is contained in:
parent
703b432fb7
commit
47d7fbfc27
@ -309,6 +309,8 @@ int Engine::GetCountdown(float elapsedTime) {
|
|||||||
m_countdown = m_time + COUNTDOWN;
|
m_countdown = m_time + COUNTDOWN;
|
||||||
m_resetcountdown = false;
|
m_resetcountdown = false;
|
||||||
}
|
}
|
||||||
|
if (m_countdown < m_time)
|
||||||
|
Stop();
|
||||||
if(!m_stopcountdown)
|
if(!m_stopcountdown)
|
||||||
m_time += elapsedTime;
|
m_time += elapsedTime;
|
||||||
return m_countdown - (int)m_time;
|
return m_countdown - (int)m_time;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user