From 6e8266fd58aea68cc63cca98e61837f5a8fc3312 Mon Sep 17 00:00:00 2001 From: krzys-h Date: Thu, 6 Aug 2015 16:14:11 +0200 Subject: [PATCH] Always clear tooltip and highlighted object on phase change --- src/object/robotmain.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/object/robotmain.cpp b/src/object/robotmain.cpp index 852f399c..c324db09 100644 --- a/src/object/robotmain.cpp +++ b/src/object/robotmain.cpp @@ -457,7 +457,6 @@ void CRobotMain::ChangePhase(Phase phase) m_lightning->Flush(); m_planet->Flush(); m_interface->Flush(); - ClearInterface(); FlushNewScriptName(); m_sound->SetListener(Math::Vector(0.0f, 0.0f, 0.0f), Math::Vector(0.0f, 0.0f, 1.0f)); m_camera->SetType(Gfx::CAM_TYPE_DIALOG); @@ -467,6 +466,7 @@ void CRobotMain::ChangePhase(Phase phase) m_cameraZoom = 0.0f; m_shortCut = true; } + ClearInterface(); Math::Point dim, pos;