From 78d67cdf35c80381366fee29b212aca23d7240fd Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Sat, 23 Mar 2013 15:03:29 +0300 Subject: Fix profiler labels. --- src/game.cpp | 3 +++ 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() -- cgit v1.2.3-60-g2f50