From d06516507af44e88d7ca3fc6dc4d87ffd375bf0a Mon Sep 17 00:00:00 2001 From: krzys-h Date: Sat, 13 Feb 2016 20:40:23 +0100 Subject: [PATCH] Fixed game not being unpaused if you leave code battle without starting, closes #679 --- src/level/robotmain.cpp | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/level/robotmain.cpp b/src/level/robotmain.cpp index 4ff7870c..1f514ca0 100644 --- a/src/level/robotmain.cpp +++ b/src/level/robotmain.cpp @@ -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?