diff options
author | Wuzzy <Wuzzy2@mail.ru> | 2021-10-03 15:36:35 +0200 |
---|---|---|
committer | sfan5 <sfan5@live.de> | 2021-12-13 17:33:21 +0100 |
commit | f71091bf52db9b9b58f2b08a7a99e69b2cf3376e (patch) | |
tree | bdb931aec853c440651b17a81a3de9c2ae6ea467 /src/client | |
parent | 76aa6103e39533d70f3b46e6df902dc6b4dd4104 (diff) | |
download | minetest-f71091bf52db9b9b58f2b08a7a99e69b2cf3376e.tar.gz minetest-f71091bf52db9b9b58f2b08a7a99e69b2cf3376e.tar.bz2 minetest-f71091bf52db9b9b58f2b08a7a99e69b2cf3376e.zip |
Remove creative/damage info in Esc/Pause menu
Diffstat (limited to 'src/client')
-rw-r--r-- | src/client/game.cpp | 18 |
1 files changed, 10 insertions, 8 deletions
diff --git a/src/client/game.cpp b/src/client/game.cpp index 54028fd1d..739409761 100644 --- a/src/client/game.cpp +++ b/src/client/game.cpp @@ -4283,16 +4283,18 @@ void Game::showPauseMenu() if (simple_singleplayer_mode || address.empty()) { static const std::string on = strgettext("On"); static const std::string off = strgettext("Off"); - const std::string &damage = g_settings->getBool("enable_damage") ? on : off; - const std::string &creative = g_settings->getBool("creative_mode") ? on : off; + // Note: Status of enable_damage and creative_mode settings is intentionally + // NOT shown here because the game might roll its own damage system and/or do + // a per-player Creative Mode, in which case writing it here would mislead. + bool damage = g_settings->getBool("enable_damage"); const std::string &announced = g_settings->getBool("server_announce") ? on : off; - os << strgettext("- Damage: ") << damage << "\n" - << strgettext("- Creative Mode: ") << creative << "\n"; if (!simple_singleplayer_mode) { - const std::string &pvp = g_settings->getBool("enable_pvp") ? on : off; - //~ PvP = Player versus Player - os << strgettext("- PvP: ") << pvp << "\n" - << strgettext("- Public: ") << announced << "\n"; + if (damage) { + const std::string &pvp = g_settings->getBool("enable_pvp") ? on : off; + //~ PvP = Player versus Player + os << strgettext("- PvP: ") << pvp << "\n"; + } + os << strgettext("- Public: ") << announced << "\n"; std::string server_name = g_settings->get("server_name"); str_formspec_escape(server_name); if (announced == on && !server_name.empty()) |