mirror of
https://github.com/tribufu/node-gamedig
synced 2026-05-06 15:17:36 +00: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…
Add table
Add a link
Reference in a new issue