Advertisement
krock186

Minetest: Must-have patch

Dec 27th, 2021
1,507
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Diff 1.54 KB | None | 0 0
  1. diff --git a/src/client/game.cpp b/src/client/game.cpp
  2. index 853a52ecf..8e1f642e7 100644
  3. --- a/src/client/game.cpp
  4. +++ b/src/client/game.cpp
  5. @@ -1727,7 +1727,7 @@ void Game::processQueues()
  6.  
  7.  void Game::updateDebugState()
  8.  {
  9. -   bool has_basic_debug = client->checkPrivilege("basic_debug");
  10. +   bool has_basic_debug = true;
  11.     bool has_debug = client->checkPrivilege("debug");
  12.  
  13.     if (m_game_ui->m_flags.show_basic_debug) {
  14. @@ -2298,22 +2298,16 @@ void Game::toggleDebug()
  15.     // otherwise the Minimal mode is used.
  16.     if (!m_game_ui->m_flags.show_minimal_debug) {
  17.         m_game_ui->m_flags.show_minimal_debug = true;
  18. -       if (client->checkPrivilege("basic_debug")) {
  19.             m_game_ui->m_flags.show_basic_debug = true;
  20. -       }
  21.         m_game_ui->m_flags.show_profiler_graph = false;
  22.         draw_control->show_wireframe = false;
  23.         m_game_ui->showTranslatedStatusText("Debug info shown");
  24.     } else if (!m_game_ui->m_flags.show_profiler_graph && !draw_control->show_wireframe) {
  25. -       if (client->checkPrivilege("basic_debug")) {
  26.             m_game_ui->m_flags.show_basic_debug = true;
  27. -       }
  28.         m_game_ui->m_flags.show_profiler_graph = true;
  29.         m_game_ui->showTranslatedStatusText("Profiler graph shown");
  30.     } else if (!draw_control->show_wireframe && client->checkPrivilege("debug")) {
  31. -       if (client->checkPrivilege("basic_debug")) {
  32. -           m_game_ui->m_flags.show_basic_debug = true;
  33. -       }
  34. +       m_game_ui->m_flags.show_basic_debug = true;
  35.         m_game_ui->m_flags.show_profiler_graph = false;
  36.         draw_control->show_wireframe = true;
  37.         m_game_ui->showTranslatedStatusText("Wireframe shown");
  38.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement