From 34cc4ba555814f7907400b4d4b2c5e9fbfa99d22 Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Sat, 23 Mar 2013 16:40:20 +0300 Subject: More fixed for profiler labels. --- src/game.cpp | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'src') diff --git a/src/game.cpp b/src/game.cpp index 6f01527d6..0a579a9ad 100644 --- a/src/game.cpp +++ b/src/game.cpp @@ -948,6 +948,7 @@ void Game::handleInput() if (inputManager.handleEvent(event)) { BLOCK_END("Game::handleInput 2") + BLOCK_END("Game::handleInput 1") return; } @@ -979,13 +980,17 @@ void Game::handleInput() // If the user is configuring the keys then don't respond. if (!player_node || !keyboard.isEnabled() || player_node->getAway()) + { + BLOCK_END("Game::handleInput 1") return; + } // If pressed outfits keys, stop processing keys. if (inputManager.isActionActive(Input::KEY_WEAR_OUTFIT) || inputManager.isActionActive(Input::KEY_COPY_OUTFIT) || (setupWindow && setupWindow->isVisible())) { + BLOCK_END("Game::handleInput 1") return; } -- cgit v1.2.3-70-g09d2