From dde66a82ed06c4887ce0e63ef5f0b8d3bce2ed74 Mon Sep 17 00:00:00 2001 From: lhofhansl Date: Fri, 4 Nov 2016 05:06:32 +0100 Subject: [PATCH] Cycle directly to nothing shown instead of showing the profiler graph again Fix for previous commit. --- src/game.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/game.cpp b/src/game.cpp index af0476a0..33795abc 100644 --- a/src/game.cpp +++ b/src/game.cpp @@ -3131,7 +3131,7 @@ void Game::toggleDebug(float *statustext_time, bool *show_debug, *show_profiler_graph = false; *show_wireframe = false; statustext = L"Debug info shown"; - } else if (!*show_profiler_graph) { + } else if (!*show_profiler_graph && !*show_wireframe) { *show_profiler_graph = true; statustext = L"Profiler graph shown"; } else if (!*show_wireframe && client->checkPrivilege("debug")) {