diff options
-rw-r--r-- | src/game.cpp | 3 | ||||
-rw-r--r-- | src/gui/gui.cpp | 2 |
2 files changed, 3 insertions, 2 deletions
diff --git a/src/game.cpp b/src/game.cpp index 58cc9343e..6f01527d6 100644 --- a/src/game.cpp +++ b/src/game.cpp @@ -946,7 +946,10 @@ void Game::handleInput() checkKeys(); if (inputManager.handleEvent(event)) + { + BLOCK_END("Game::handleInput 2") return; + } switch (event.type) { diff --git a/src/gui/gui.cpp b/src/gui/gui.cpp index a6e222183..fbd37f9a9 100644 --- a/src/gui/gui.cpp +++ b/src/gui/gui.cpp @@ -328,12 +328,10 @@ void Gui::clearFonts() bool Gui::handleInput() { - BLOCK_START("Gui::handleInput") if (mInput) return handleKeyInput2(); else return false; - BLOCK_END("Gui::handleInput") } bool Gui::handleKeyInput2() |