From: Jan Behrens Date: Tue, 22 Jan 2013 21:45:30 +0000 (+0100) Subject: Make CA and LMS send correct data to XonStat X-Git-Tag: xonotic-v0.7.0~23^2~15 X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=045d99effff66234921edeb95f9246ef05ae422a;p=xonotic%2Fxonotic-data.pk3dir.git Make CA and LMS send correct data to XonStat --- diff --git a/qcsrc/server/playerstats.qc b/qcsrc/server/playerstats.qc index 53f390913..3aa33c5a4 100644 --- a/qcsrc/server/playerstats.qc +++ b/qcsrc/server/playerstats.qc @@ -376,8 +376,10 @@ void PlayerStats_EndMatch(float finished) { //PlayerStats_Accuracy(p); // stats are already written with PlayerStats_AddGlobalInfo(entity), don't double them up. - if((g_arena || g_lms || g_ca) && (p.alivetime <= 0)) { continue; } - else if(p.classname != "player") { continue; } + if (p.classname != "player" && p.classname != "observer") { continue; } + else if (g_ca && (p.caplayer == 0)) { continue; } // spectators in CA have caplayer==0 + else if (p.frags == FRAGS_SPECTATOR) { continue; } // only spectators have frags==-666 + else if (g_arena) { continue; } // FIXME if(clienttype(p) == CLIENTTYPE_REAL) {