summaryrefslogtreecommitdiff
path: root/src/inputmanager.cpp
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2013-04-09 18:17:50 +0300
committerAndrei Karas <akaras@inbox.ru>2013-04-09 18:17:50 +0300
commit4aeceabb5d4f00e2555234951a2f5db24b008265 (patch)
tree16e970611e7cc05352f18a9385b9e26c72d498d8 /src/inputmanager.cpp
parentdd4d44a07d3a63ced0eec51c30b75887792c4a36 (diff)
downloadmanaverse-4aeceabb5d4f00e2555234951a2f5db24b008265.tar.gz
manaverse-4aeceabb5d4f00e2555234951a2f5db24b008265.tar.bz2
manaverse-4aeceabb5d4f00e2555234951a2f5db24b008265.tar.xz
manaverse-4aeceabb5d4f00e2555234951a2f5db24b008265.zip
Improve perfomance in windows and popups visibility checks.
Diffstat (limited to 'src/inputmanager.cpp')
-rw-r--r--src/inputmanager.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/inputmanager.cpp b/src/inputmanager.cpp
index eb3613640..416e003eb 100644
--- a/src/inputmanager.cpp
+++ b/src/inputmanager.cpp
@@ -443,7 +443,7 @@ void InputManager::unassignKey()
bool InputManager::handleAssignKey(const SDL_Event &event, const int type)
{
- if (setupWindow && setupWindow->isVisible() &&
+ if (setupWindow && setupWindow->isWindowVisible() &&
getNewKeyIndex() > Input::KEY_NO_VALUE)
{
setNewKey(event, type);
@@ -583,7 +583,7 @@ void InputManager::updateConditionMask()
if (!player_node || !player_node->getAway())
mMask |= COND_NOAWAY;
- if (!setupWindow || !setupWindow->isVisible())
+ if (!setupWindow || !setupWindow->isWindowVisible())
mMask |= COND_NOSETUP;
if (Game::instance() && Game::instance()->getValidSpeed())