mirror of
https://github.com/luanti-org/luanti.git
synced 2025-10-16 09:55:22 +02:00
Fix GameUI flag value regression introduced by a78659ed05
Added more strong unittests on that part to prevent future regression
This commit is contained in:
@@ -189,8 +189,6 @@ void GameUI::update(const RunStats &stats, Client *client, MapDrawControl *draw_
|
||||
void GameUI::initFlags()
|
||||
{
|
||||
m_flags = GameUI::Flags();
|
||||
m_flags.show_chat = true;
|
||||
m_flags.show_hud = true;
|
||||
m_flags.show_debug = g_settings->getBool("show_debug");
|
||||
}
|
||||
|
||||
|
@@ -54,9 +54,9 @@ public:
|
||||
{
|
||||
bool show_chat = true;
|
||||
bool show_hud = true;
|
||||
bool show_minimap = true;
|
||||
bool show_minimap = false;
|
||||
bool show_debug = true;
|
||||
bool show_profiler_graph = true;
|
||||
bool show_profiler_graph = false;
|
||||
};
|
||||
|
||||
void init();
|
||||
|
Reference in New Issue
Block a user