Fixed selection markers not disappearing when moving gun away
parent
8b7bd663b9
commit
fe44e617a8
|
@ -717,18 +717,11 @@ bool CRobotMain::ProcessEvent(Event &event)
|
|||
if (event.type == EVENT_SPEED)
|
||||
SetSpeed(1.0f);
|
||||
|
||||
if (event.type == EVENT_MOUSE_MOVE)
|
||||
{
|
||||
m_lastMousePos = event.mousePos;
|
||||
HiliteObject(event.mousePos);
|
||||
}
|
||||
|
||||
if (!m_displayText->EventProcess(event))
|
||||
return false;
|
||||
|
||||
if (event.type == EVENT_MOUSE_MOVE)
|
||||
{
|
||||
m_lastMousePos = event.mousePos;
|
||||
HiliteObject(event.mousePos);
|
||||
}
|
||||
|
||||
|
|
|
@ -464,7 +464,6 @@ protected:
|
|||
float m_lostDelay = 0.0f;
|
||||
bool m_fixScene = false; // scene fixed, no interraction
|
||||
CObject* m_base = nullptr; // OBJECT_BASE exists in mission
|
||||
Math::Point m_lastMousePos;
|
||||
CObject* m_selectObject = nullptr;
|
||||
|
||||
Phase m_phase = PHASE_WELCOME1;
|
||||
|
|
|
@ -76,7 +76,6 @@ bool CTarget::EventProcess(const Event &event)
|
|||
m_engine->SetMouseType(Gfx::ENG_MOUSE_TARGET);
|
||||
|
||||
m_event->AddEvent(Event(m_eventType));
|
||||
return false;
|
||||
}
|
||||
else
|
||||
{
|
||||
|
|
Loading…
Reference in New Issue