Deactive pause before jumping to next visit

When pause was active setting new pause resulted in strange behavior.

This should fix issue .
dev-time-step
Krzysztof Dermont 2016-03-29 22:29:24 +02:00
parent 2ea453f484
commit 8ccad5b954
1 changed files with 6 additions and 0 deletions
src/level

View File

@ -1631,6 +1631,12 @@ void CRobotMain::StartDisplayVisit(EventType event)
{
if (m_editLock) return;
if (m_visitPause)
{
m_pause->DeactivatePause(m_visitPause);
m_visitPause = nullptr;
}
Ui::CWindow* pw = static_cast<Ui::CWindow*>(m_interface->SearchControl(EVENT_WINDOW2));
if (pw == nullptr) return;