mirror of
https://github.com/gamedig/node-gamedig.git
synced 2024-11-17 17:25:19 +01:00
In source, connecting players don't count, as we don't even know their name yet.
This commit is contained in:
parent
1df81277f0
commit
6112c88bd4
1 changed files with 4 additions and 0 deletions
|
@ -91,6 +91,10 @@ module.exports = require('./core').extend({
|
|||
var name = reader.string();
|
||||
var score = reader.uint(4);
|
||||
var time = reader.float();
|
||||
|
||||
// connecting players don't could as players.
|
||||
if(!name) continue;
|
||||
|
||||
(time == -1 ? state.bots : state.players).push({
|
||||
name:name, score:score, time:time
|
||||
});
|
||||
|
|
Loading…
Reference in a new issue