]> git.lizzy.rs Git - minetest.git/commitdiff
Cycle directly to nothing shown instead of showing the profiler graph again
authorlhofhansl <lhofhansl@yahoo.com>
Fri, 4 Nov 2016 04:06:32 +0000 (05:06 +0100)
committerest31 <MTest31@outlook.com>
Fri, 4 Nov 2016 04:08:23 +0000 (05:08 +0100)
Fix for previous commit.

src/game.cpp

index af0476a0b74dd8f79749a505a5936f80e41f8529..33795abc531504118fd84a1f533dce37009c9c14 100644 (file)
@@ -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")) {