In source, connecting players don't count, as we don't even know their name yet.

This commit is contained in:
Michael Morrison 2013-07-12 14:15:16 -05:00
parent 1df81277f0
commit 6112c88bd4

View file

@ -91,6 +91,10 @@ module.exports = require('./core').extend({
var name = reader.string(); var name = reader.string();
var score = reader.uint(4); var score = reader.uint(4);
var time = reader.float(); var time = reader.float();
// connecting players don't could as players.
if(!name) continue;
(time == -1 ? state.bots : state.players).push({ (time == -1 ? state.bots : state.players).push({
name:name, score:score, time:time name:name, score:score, time:time
}); });