Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- diff --git a/src/client/game.cpp b/src/client/game.cpp
- index 853a52ecf..8e1f642e7 100644
- --- a/src/client/game.cpp
- +++ b/src/client/game.cpp
- @@ -1727,7 +1727,7 @@ void Game::processQueues()
- void Game::updateDebugState()
- {
- - bool has_basic_debug = client->checkPrivilege("basic_debug");
- + bool has_basic_debug = true;
- bool has_debug = client->checkPrivilege("debug");
- if (m_game_ui->m_flags.show_basic_debug) {
- @@ -2298,22 +2298,16 @@ void Game::toggleDebug()
- // otherwise the Minimal mode is used.
- if (!m_game_ui->m_flags.show_minimal_debug) {
- m_game_ui->m_flags.show_minimal_debug = true;
- - if (client->checkPrivilege("basic_debug")) {
- m_game_ui->m_flags.show_basic_debug = true;
- - }
- m_game_ui->m_flags.show_profiler_graph = false;
- draw_control->show_wireframe = false;
- m_game_ui->showTranslatedStatusText("Debug info shown");
- } else if (!m_game_ui->m_flags.show_profiler_graph && !draw_control->show_wireframe) {
- - if (client->checkPrivilege("basic_debug")) {
- m_game_ui->m_flags.show_basic_debug = true;
- - }
- m_game_ui->m_flags.show_profiler_graph = true;
- m_game_ui->showTranslatedStatusText("Profiler graph shown");
- } else if (!draw_control->show_wireframe && client->checkPrivilege("debug")) {
- - if (client->checkPrivilege("basic_debug")) {
- - m_game_ui->m_flags.show_basic_debug = true;
- - }
- + m_game_ui->m_flags.show_basic_debug = true;
- m_game_ui->m_flags.show_profiler_graph = false;
- draw_control->show_wireframe = true;
- m_game_ui->showTranslatedStatusText("Wireframe shown");
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement