summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorkrzys-h <krzys_h@interia.pl>2014-10-29 16:08:45 +0100
committerkrzys-h <krzys_h@interia.pl>2014-10-29 16:08:55 +0100
commit61e06149c65fbc61c6d927f527195a9b4a8154dc (patch)
tree79452f02a9c70c65ab652bef35193c61355d31a0
parentd91569e165083a7c12b1c672713a9725d80c261c (diff)
downloadcolobot-61e06149c65fbc61c6d927f527195a9b4a8154dc.tar.gz
colobot-61e06149c65fbc61c6d927f527195a9b4a8154dc.tar.bz2
colobot-61e06149c65fbc61c6d927f527195a9b4a8154dc.zip
Fixed position updating
-rw-r--r--src/object/robotmain.cpp7
1 files 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);