forked from Mirrorlandia_minetest/minetest
Don't say 'Creating server and client' if the server is remote, so not being created
This commit is contained in:
parent
e09fec3373
commit
b5ceaf445a
@ -672,7 +672,6 @@ void the_game(
|
|||||||
guienv->drawAll();
|
guienv->drawAll();
|
||||||
driver->endScene();
|
driver->endScene();
|
||||||
|
|
||||||
std::cout<<DTIME<<"Creating server and client"<<std::endl;
|
|
||||||
|
|
||||||
/*
|
/*
|
||||||
Create server.
|
Create server.
|
||||||
@ -680,6 +679,7 @@ void the_game(
|
|||||||
*/
|
*/
|
||||||
SharedPtr<Server> server;
|
SharedPtr<Server> server;
|
||||||
if(address == ""){
|
if(address == ""){
|
||||||
|
std::cout<<DTIME<<"Creating server"<<std::endl;
|
||||||
server = new Server(map_dir);
|
server = new Server(map_dir);
|
||||||
server->start(port);
|
server->start(port);
|
||||||
}
|
}
|
||||||
@ -688,6 +688,7 @@ void the_game(
|
|||||||
Create client
|
Create client
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
std::cout<<DTIME<<"Creating client"<<std::endl;
|
||||||
Client client(device, playername.c_str(), draw_control);
|
Client client(device, playername.c_str(), draw_control);
|
||||||
|
|
||||||
Address connect_address(0,0,0,0, port);
|
Address connect_address(0,0,0,0, port);
|
||||||
|
Loading…
Reference in New Issue
Block a user