From a1a96c62ab5698cccc38e7da4cded8a2bbcf0018 Mon Sep 17 00:00:00 2001 From: krzys-h Date: Tue, 14 Jul 2015 21:03:27 +0200 Subject: [PATCH] Fixed system mouse setting --- src/object/robotmain.cpp | 14 ++------------ 1 file changed, 2 insertions(+), 12 deletions(-) diff --git a/src/object/robotmain.cpp b/src/object/robotmain.cpp index cf846caa..47d9a915 100644 --- a/src/object/robotmain.cpp +++ b/src/object/robotmain.cpp @@ -283,6 +283,8 @@ void CRobotMain::Create(bool loadProfile) m_engine->SetMovieLock(m_movieLock); + m_app->SetMouseMode(MOUSE_ENGINE); + m_movie->Flush(); FlushDisplayInfo(); @@ -661,11 +663,6 @@ void CRobotMain::ChangePhase(Phase phase) } } - if (m_phase == PHASE_LOADING) - m_app->SetMouseMode(MOUSE_NONE); - else - m_app->SetMouseMode(MOUSE_ENGINE); - m_engine->LoadAllTextures(); } @@ -2553,8 +2550,6 @@ void CRobotMain::AbortMovie() automat->Abort(); } } - - m_app->SetMouseMode(MOUSE_ENGINE); } @@ -5857,11 +5852,6 @@ void CRobotMain::SetMovieLock(bool lock) CreateShortcuts(); m_map->ShowMap(!m_movieLock && m_mapShow); if (m_movieLock) HiliteClear(); - - if (m_movieLock) - m_app->SetMouseMode(MOUSE_NONE); - else - m_app->SetMouseMode(MOUSE_ENGINE); } bool CRobotMain::GetMovieLock()