From: Rudolf Polzer Date: Wed, 23 Jan 2013 13:18:24 +0000 (+0100) Subject: simplify spectating detection logic, fixes #1383 again too X-Git-Tag: xonotic-v0.7.0~120 X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=a8134dd8b5f548d32eef6493f0c181b6d09e810f;p=xonotic%2Fxonotic-data.pk3dir.git simplify spectating detection logic, fixes #1383 again too --- diff --git a/qcsrc/server/playerstats.qc b/qcsrc/server/playerstats.qc index 365115d67..e6c69ad49 100644 --- a/qcsrc/server/playerstats.qc +++ b/qcsrc/server/playerstats.qc @@ -375,17 +375,9 @@ void PlayerStats_EndMatch(float finished) FOR_EACH_CLIENT(p) { //PlayerStats_Accuracy(p); // stats are already written with PlayerStats_AddGlobalInfo(entity), don't double them up. - - if(g_arena || g_lms || g_ca) - { - if(PlayerStats_Event(self, PLAYERSTATS_ALIVETIME, 0) <= 0) - continue; - } - else - { - if(p.classname != "player") - continue; - } + + if(p.frags == FRAGS_SPECTATOR) + continue; if(clienttype(p) == CLIENTTYPE_REAL) {