@@ -677,7 +677,7 @@ class Game {
677
677
bool handleCallbacks ();
678
678
void processQueues ();
679
679
void updateProfilers (const RunStats &stats, const FpsControl &draw_times, f32 dtime);
680
- void updateBasicDebugState ();
680
+ void updateDebugState ();
681
681
void updateStats (RunStats *stats, const FpsControl &draw_times, f32 dtime);
682
682
void updateProfilerGraphs (ProfilerGraph *graph);
683
683
@@ -1123,7 +1123,7 @@ void Game::run()
1123
1123
updatePlayerControl (cam_view);
1124
1124
step (&dtime);
1125
1125
processClientEvents (&cam_view_target);
1126
- updateBasicDebugState ();
1126
+ updateDebugState ();
1127
1127
updateCamera (draw_times.busy_time , dtime);
1128
1128
updateSound (dtime);
1129
1129
processPlayerInteraction (dtime, m_game_ui->m_flags .show_hud ,
@@ -1728,18 +1728,24 @@ void Game::processQueues()
1728
1728
shader_src->processQueue ();
1729
1729
}
1730
1730
1731
- void Game::updateBasicDebugState ()
1731
+ void Game::updateDebugState ()
1732
1732
{
1733
+ bool has_basic_debug = client->checkPrivilege (" basic_debug" );
1734
+ bool has_debug = client->checkPrivilege (" debug" );
1735
+
1733
1736
if (m_game_ui->m_flags .show_basic_debug ) {
1734
- if (!client-> checkPrivilege ( " basic_debug " ) ) {
1737
+ if (!has_basic_debug ) {
1735
1738
m_game_ui->m_flags .show_basic_debug = false ;
1736
- hud->disableBlockBounds ();
1737
1739
}
1738
1740
} else if (m_game_ui->m_flags .show_minimal_debug ) {
1739
- if (client-> checkPrivilege ( " basic_debug " ) ) {
1741
+ if (has_basic_debug ) {
1740
1742
m_game_ui->m_flags .show_basic_debug = true ;
1741
1743
}
1742
1744
}
1745
+ if (!has_basic_debug)
1746
+ hud->disableBlockBounds ();
1747
+ if (!has_debug)
1748
+ draw_control->show_wireframe = false ;
1743
1749
}
1744
1750
1745
1751
void Game::updateProfilers (const RunStats &stats, const FpsControl &draw_times,
0 commit comments