aboutsummaryrefslogtreecommitdiff
path: root/src/client/game.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/client/game.cpp')
-rw-r--r--src/client/game.cpp9
1 files changed, 6 insertions, 3 deletions
diff --git a/src/client/game.cpp b/src/client/game.cpp
index 491d55a34..479484ae9 100644
--- a/src/client/game.cpp
+++ b/src/client/game.cpp
@@ -3206,9 +3206,12 @@ void Game::updateFrame(ProfilerGraph *graph, RunStats *stats, f32 dtime,
Cheat menu
*/
- if (m_game_ui->m_flags.show_cheat_menu && ! gui_chat_console->isOpen())
- m_cheat_menu->draw(driver, m_game_ui->m_flags.show_debug);
-
+ if (! gui_chat_console->isOpen()) {
+ if (m_game_ui->m_flags.show_cheat_menu)
+ m_cheat_menu->draw(driver, m_game_ui->m_flags.show_debug);
+ if (g_settings->getBool("cheat_hud"))
+ m_cheat_menu->drawHUD(driver, dtime);
+ }
/*
Damage flash
*/