Anti-disconnect addition to the gamesetup screen. Also fixes typo in the lobby bot README.
This was SVN commit r14753.
This commit is contained in:
parent
be881dc420
commit
f92a46330d
@ -600,6 +600,8 @@ function cancelSetup()
|
||||
}
|
||||
}
|
||||
|
||||
var lastXmppClientPoll = Date.now();
|
||||
|
||||
function onTick()
|
||||
{
|
||||
// First tick happens before first render, so don't load yet
|
||||
@ -625,6 +627,13 @@ function onTick()
|
||||
handleNetMessage(message);
|
||||
}
|
||||
}
|
||||
|
||||
// If the lobby is running, wake it up every 10 seconds so we stay connected.
|
||||
if (Engine.HasXmppClient() && (Date.now() - lastXmppClientPoll) > 10000)
|
||||
{
|
||||
Engine.RecvXmppClient();
|
||||
lastXmppClientPoll = Date.now();
|
||||
}
|
||||
}
|
||||
|
||||
// Called when user selects number of players
|
||||
|
@ -66,7 +66,7 @@ If you would like to run the leaderboard database,
|
||||
$ sudo apt-get install sqlalchemy
|
||||
|
||||
Then execute the following command to setup the database.
|
||||
$ ./source/tools/XpartaMuPP/LobbyRankings.py
|
||||
$ ./source/tools/XpartaMuPP/LobbyRanking.py
|
||||
|
||||
Execute the following command to run the bot with default options
|
||||
$ ./source/tools/XpartaMuPP/XpartaMuPP.py
|
||||
|
Loading…
Reference in New Issue
Block a user