Fixed position updating
parent
d91569e165
commit
61e06149c6
|
@ -1416,6 +1416,11 @@ bool CRobotMain::ProcessEvent(Event &event)
|
||||||
m_interface->EventProcess(event);
|
m_interface->EventProcess(event);
|
||||||
if (m_displayInfo != nullptr) // current edition?
|
if (m_displayInfo != nullptr) // current edition?
|
||||||
m_displayInfo->EventProcess(event);
|
m_displayInfo->EventProcess(event);
|
||||||
|
|
||||||
|
if (m_phase == PHASE_SIMUL)
|
||||||
|
{
|
||||||
|
UpdateInfoText();
|
||||||
|
}
|
||||||
|
|
||||||
return EventFrame(event);
|
return EventFrame(event);
|
||||||
}
|
}
|
||||||
|
@ -1500,8 +1505,6 @@ bool CRobotMain::ProcessEvent(Event &event)
|
||||||
// Simulation phase of the game
|
// Simulation phase of the game
|
||||||
if (m_phase == PHASE_SIMUL)
|
if (m_phase == PHASE_SIMUL)
|
||||||
{
|
{
|
||||||
UpdateInfoText();
|
|
||||||
|
|
||||||
if (!m_editFull)
|
if (!m_editFull)
|
||||||
m_camera->EventProcess(event);
|
m_camera->EventProcess(event);
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue