From 61e06149c65fbc61c6d927f527195a9b4a8154dc Mon Sep 17 00:00:00 2001 From: krzys-h Date: Wed, 29 Oct 2014 16:08:45 +0100 Subject: Fixed position updating --- src/object/robotmain.cpp | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/src/object/robotmain.cpp b/src/object/robotmain.cpp index 90faceb..6ebd34c 100644 --- a/src/object/robotmain.cpp +++ b/src/object/robotmain.cpp @@ -1416,6 +1416,11 @@ bool CRobotMain::ProcessEvent(Event &event) m_interface->EventProcess(event); if (m_displayInfo != nullptr) // current edition? m_displayInfo->EventProcess(event); + + if (m_phase == PHASE_SIMUL) + { + UpdateInfoText(); + } return EventFrame(event); } @@ -1500,8 +1505,6 @@ bool CRobotMain::ProcessEvent(Event &event) // Simulation phase of the game if (m_phase == PHASE_SIMUL) { - UpdateInfoText(); - if (!m_editFull) m_camera->EventProcess(event); -- cgit v1.2.3-1-g7c22