mirror of
https://github.com/minetest/minetest.git
synced 2024-11-04 23:03:46 +01:00
Fix a small regression caused by e2ad76f.
This commit is contained in:
parent
a5e4273575
commit
2dcbc01904
@ -411,8 +411,6 @@ bool ClientLauncher::launch_game(std::string &error_message,
|
|||||||
playername = menudata.name;
|
playername = menudata.name;
|
||||||
password = menudata.password;
|
password = menudata.password;
|
||||||
|
|
||||||
g_settings->set("name", playername);
|
|
||||||
|
|
||||||
current_playername = playername;
|
current_playername = playername;
|
||||||
current_password = password;
|
current_password = password;
|
||||||
current_address = address;
|
current_address = address;
|
||||||
@ -425,13 +423,16 @@ bool ClientLauncher::launch_game(std::string &error_message,
|
|||||||
current_password = "";
|
current_password = "";
|
||||||
current_address = "";
|
current_address = "";
|
||||||
current_port = myrand_range(49152, 65535);
|
current_port = myrand_range(49152, 65535);
|
||||||
} else if (address != "") {
|
} else {
|
||||||
ServerListSpec server;
|
g_settings->set("name", playername);
|
||||||
server["name"] = menudata.servername;
|
if (address != "") {
|
||||||
server["address"] = menudata.address;
|
ServerListSpec server;
|
||||||
server["port"] = menudata.port;
|
server["name"] = menudata.servername;
|
||||||
server["description"] = menudata.serverdescription;
|
server["address"] = menudata.address;
|
||||||
ServerList::insert(server);
|
server["port"] = menudata.port;
|
||||||
|
server["description"] = menudata.serverdescription;
|
||||||
|
ServerList::insert(server);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
infostream << "Selected world: " << worldspec.name
|
infostream << "Selected world: " << worldspec.name
|
||||||
|
Loading…
Reference in New Issue
Block a user