mirror of
https://github.com/minetest/minetest.git
synced 2024-11-27 10:03:45 +01:00
Remove server's address and port from pause menu (#14082)
This commit is contained in:
parent
995c192874
commit
e17455cb22
@ -4524,19 +4524,16 @@ void Game::showPauseMenu()
|
|||||||
<< "\n"
|
<< "\n"
|
||||||
<< strgettext("Game info:") << "\n";
|
<< strgettext("Game info:") << "\n";
|
||||||
const std::string &address = client->getAddressName();
|
const std::string &address = client->getAddressName();
|
||||||
static const std::string mode = strgettext("- Mode: ");
|
os << strgettext("- Mode: ");
|
||||||
if (!simple_singleplayer_mode) {
|
if (!simple_singleplayer_mode) {
|
||||||
Address serverAddress = client->getServerAddress();
|
if (address.empty())
|
||||||
if (!address.empty()) {
|
os << strgettext("Hosting server");
|
||||||
os << mode << strgettext("Remote server") << "\n"
|
else
|
||||||
<< strgettext("- Address: ") << address;
|
os << strgettext("Remote server");
|
||||||
} else {
|
} else {
|
||||||
os << mode << strgettext("Hosting server");
|
os << strgettext("Singleplayer");
|
||||||
}
|
|
||||||
os << "\n" << strgettext("- Port: ") << serverAddress.getPort() << "\n";
|
|
||||||
} else {
|
|
||||||
os << mode << strgettext("Singleplayer") << "\n";
|
|
||||||
}
|
}
|
||||||
|
os << "\n";
|
||||||
if (simple_singleplayer_mode || address.empty()) {
|
if (simple_singleplayer_mode || address.empty()) {
|
||||||
static const std::string on = strgettext("On");
|
static const std::string on = strgettext("On");
|
||||||
static const std::string off = strgettext("Off");
|
static const std::string off = strgettext("Off");
|
||||||
|
Loading…
Reference in New Issue
Block a user