Updated documentation.

This commit is contained in:
hiker 2015-11-05 07:59:28 +11:00
parent 35793d99c8
commit b7b37b9ec9
2 changed files with 4 additions and 1 deletions

View File

@ -173,6 +173,7 @@ void CreateServerScreen::createServer()
return;
}
// In case of a LAN game, we can create the new server object now
if (STKHost::isLAN())
{
Server *server = new Server(name, /*lan*/true, max_players,
@ -182,6 +183,9 @@ void CreateServerScreen::createServer()
return;
}
// In case of a WAN game, we register this server with the
// stk server, and will get the server's id when this
// request is finished.
STKHost::setMaxPlayers(max_players);
STKHost::create(name);

View File

@ -60,7 +60,6 @@ private:
}; // ServerCreationRequest
// --------------------------------------------------------------------
ServerCreationRequest *m_server_creation_request;
void createServer();