Fix show_debug setting causing inconsistency between debug control and shown debug info

This commit is contained in:
DS 2025-01-05 13:20:21 +01:00 committed by GitHub
parent 5bcb7983ec
commit 4c4918b154
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 4 additions and 1 deletions

View file

@ -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;

View file

@ -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)