mirror of
https://github.com/minetest/minetest.git
synced 2025-03-06 20:48:40 +01:00
Fix show_debug setting causing inconsistency between debug control and shown debug info
This commit is contained in:
parent
5bcb7983ec
commit
4c4918b154
2 changed files with 4 additions and 1 deletions
|
@ -896,6 +896,10 @@ bool Game::startup(bool *kill,
|
|||
runData.time_from_last_punch = 10.0;
|
||||
|
||||
m_game_ui->initFlags();
|
||||
if (g_settings->getBool("show_debug")) {
|
||||
m_flags.debug_state = 1;
|
||||
m_game_ui->m_flags.show_minimal_debug = true;
|
||||
}
|
||||
|
||||
m_first_loop_after_window_activation = true;
|
||||
|
||||
|
|
|
@ -215,7 +215,6 @@ void GameUI::update(const RunStats &stats, Client *client, MapDrawControl *draw_
|
|||
void GameUI::initFlags()
|
||||
{
|
||||
m_flags = GameUI::Flags();
|
||||
m_flags.show_minimal_debug = g_settings->getBool("show_debug");
|
||||
}
|
||||
|
||||
void GameUI::showTranslatedStatusText(const char *str)
|
||||
|
|
Loading…
Add table
Reference in a new issue