summaryrefslogtreecommitdiff
path: root/src/game.cpp
diff options
context:
space:
mode:
authorlhofhansl <lhofhansl@yahoo.com>2016-11-04 05:06:32 +0100
committerest31 <MTest31@outlook.com>2016-11-04 05:08:23 +0100
commitdde66a82ed06c4887ce0e63ef5f0b8d3bce2ed74 (patch)
tree4b75aba45682314d51500fcd1afab52b977cbb84 /src/game.cpp
parentf8fd432dca9f84a489cb7033afc4e4eef7cff49d (diff)
downloadminetest-dde66a82ed06c4887ce0e63ef5f0b8d3bce2ed74.tar.gz
minetest-dde66a82ed06c4887ce0e63ef5f0b8d3bce2ed74.tar.bz2
minetest-dde66a82ed06c4887ce0e63ef5f0b8d3bce2ed74.zip
Cycle directly to nothing shown instead of showing the profiler graph again
Fix for previous commit.
Diffstat (limited to 'src/game.cpp')
-rw-r--r--src/game.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/game.cpp b/src/game.cpp
index af0476a0b..33795abc5 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")) {