mirror of
https://github.com/luanti-org/luanti.git
synced 2025-06-27 16:36:03 +00:00
Add function to get server info.
This commit is contained in:
parent
468eeb618e
commit
ae0d8f74d7
7 changed files with 53 additions and 21 deletions
|
@ -2044,7 +2044,7 @@ bool Game::connectToServer(const std::string &playername,
|
|||
}
|
||||
|
||||
client = new Client(device,
|
||||
playername.c_str(), password,
|
||||
playername.c_str(), password, *address,
|
||||
*draw_control, texture_src, shader_src,
|
||||
itemdef_manager, nodedef_manager, sound, eventmgr,
|
||||
connect_address.isIPv6(), &flags);
|
||||
|
@ -2056,7 +2056,7 @@ bool Game::connectToServer(const std::string &playername,
|
|||
connect_address.print(&infostream);
|
||||
infostream << std::endl;
|
||||
|
||||
client->connect(connect_address, *address,
|
||||
client->connect(connect_address,
|
||||
simple_singleplayer_mode || local_server_mode);
|
||||
|
||||
/*
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue