aboutsummaryrefslogtreecommitdiff
path: root/src/client
diff options
context:
space:
mode:
authorLoic Blot <loic.blot@unix-experience.fr>2018-05-29 08:34:09 +0200
committerLoic Blot <loic.blot@unix-experience.fr>2018-05-29 08:34:09 +0200
commit75aa41c6de121f01d17cfb8f90916736496b2dce (patch)
tree822de326a329faea2ccd9bbb1750ff328e5d9fd3 /src/client
parent67ed56be3b5cc674ee9d42ccef409952b5e0c362 (diff)
downloadminetest-75aa41c6de121f01d17cfb8f90916736496b2dce.tar.gz
minetest-75aa41c6de121f01d17cfb8f90916736496b2dce.tar.bz2
minetest-75aa41c6de121f01d17cfb8f90916736496b2dce.zip
Fix GameUI flag value regression introduced by a78659ed0529226ad937f5e241ad72ba93702959
Added more strong unittests on that part to prevent future regression
Diffstat (limited to 'src/client')
-rw-r--r--src/client/gameui.cpp2
-rw-r--r--src/client/gameui.h4
2 files changed, 2 insertions, 4 deletions
diff --git a/src/client/gameui.cpp b/src/client/gameui.cpp
index 7e0a7ef67..0a0fc2bcf 100644
--- a/src/client/gameui.cpp
+++ b/src/client/gameui.cpp
@@ -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");
}
diff --git a/src/client/gameui.h b/src/client/gameui.h
index 04946084e..b6b54562a 100644
--- a/src/client/gameui.h
+++ b/src/client/gameui.h
@@ -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();