[colobot] 144/390: Fixed position updating

Didier Raboud odyx at moszumanska.debian.org
Fri Jun 12 14:21:39 UTC 2015


This is an automated email from the git hooks/post-receive script.

odyx pushed a commit to branch upstream/latest
in repository colobot.

commit 61e06149c65fbc61c6d927f527195a9b4a8154dc
Author: krzys-h <krzys_h at interia.pl>
Date:   Wed Oct 29 16:08:45 2014 +0100

    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);
 

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-games/colobot.git



More information about the Pkg-games-commits mailing list