Updated documentation.
This commit is contained in:
parent
35793d99c8
commit
b7b37b9ec9
@ -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);
|
||||
|
||||
|
@ -60,7 +60,6 @@ private:
|
||||
}; // ServerCreationRequest
|
||||
// --------------------------------------------------------------------
|
||||
|
||||
|
||||
ServerCreationRequest *m_server_creation_request;
|
||||
|
||||
void createServer();
|
||||
|
Loading…
x
Reference in New Issue
Block a user