Fixed game not being unpaused if you leave code battle without starting, closes #679

dev-time-step
krzys-h 2016-02-13 20:40:23 +01:00
parent 254891d8f1
commit d06516507a
1 changed files with 6 additions and 0 deletions

View File

@ -401,6 +401,12 @@ void CRobotMain::ChangePhase(Phase phase)
{
m_playerProfile->IncrementLevelTryCount(m_levelCategory, m_levelChap, m_levelRank);
}
if (m_userPause != nullptr)
{
m_pause->DeactivatePause(m_userPause);
m_userPause = nullptr;
}
}
if (phase == PHASE_WIN) // wins a simulation?