From 73d26bc2337e8afd03bfd73e6ccc0c0fb44a5950 Mon Sep 17 00:00:00 2001 From: Marisa-Chan Date: Mon, 4 Aug 2014 16:33:36 +0700 Subject: ZVISION: Don't focus on already focused control --- engines/zvision/scripting/script_manager.cpp | 2 ++ 1 file changed, 2 insertions(+) (limited to 'engines/zvision') diff --git a/engines/zvision/scripting/script_manager.cpp b/engines/zvision/scripting/script_manager.cpp index 6a9398d356..380141490a 100644 --- a/engines/zvision/scripting/script_manager.cpp +++ b/engines/zvision/scripting/script_manager.cpp @@ -361,6 +361,8 @@ Control *ScriptManager::getControl(uint32 key) { void ScriptManager::focusControl(uint32 key) { if (!_activeControls) return; + if (_currentlyFocusedControl == key) + return; for (ControlList::iterator iter = _activeControls->begin(); iter != _activeControls->end(); ++iter) { uint32 controlKey = (*iter)->getKey(); -- cgit v1.2.3