From 6112c88bd4d628a55e9061cb0aac14c55f1388b4 Mon Sep 17 00:00:00 2001 From: Michael Morrison Date: Fri, 12 Jul 2013 14:15:16 -0500 Subject: [PATCH] In source, connecting players don't count, as we don't even know their name yet. --- protocols/source.js | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/protocols/source.js b/protocols/source.js index fca713d..436b985 100644 --- a/protocols/source.js +++ b/protocols/source.js @@ -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 });