mirror of
https://github.com/luanti-org/luanti.git
synced 2025-10-13 16:45:20 +02:00
Cycle directly to nothing shown instead of showing the profiler graph again
Fix for previous commit.
This commit is contained in:
@@ -3131,7 +3131,7 @@ void Game::toggleDebug(float *statustext_time, bool *show_debug,
|
|||||||
*show_profiler_graph = false;
|
*show_profiler_graph = false;
|
||||||
*show_wireframe = false;
|
*show_wireframe = false;
|
||||||
statustext = L"Debug info shown";
|
statustext = L"Debug info shown";
|
||||||
} else if (!*show_profiler_graph) {
|
} else if (!*show_profiler_graph && !*show_wireframe) {
|
||||||
*show_profiler_graph = true;
|
*show_profiler_graph = true;
|
||||||
statustext = L"Profiler graph shown";
|
statustext = L"Profiler graph shown";
|
||||||
} else if (!*show_wireframe && client->checkPrivilege("debug")) {
|
} else if (!*show_wireframe && client->checkPrivilege("debug")) {
|
||||||
|
Reference in New Issue
Block a user