From: Rudolf Polzer Date: Wed, 23 Jan 2013 13:07:26 +0000 (+0100) Subject: Arena, LMS, CA: fix real vs spectator detection in player stats, fixes #1383 X-Git-Tag: xonotic-v0.7.0~122 X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=a5cc36f26e3532e3f168d54b9a4cc2f6afff05a6;p=xonotic%2Fxonotic-data.pk3dir.git Arena, LMS, CA: fix real vs spectator detection in player stats, fixes #1383 --- diff --git a/qcsrc/server/playerstats.qc b/qcsrc/server/playerstats.qc index 53f390913..dd4457f72 100644 --- a/qcsrc/server/playerstats.qc +++ b/qcsrc/server/playerstats.qc @@ -376,8 +376,16 @@ 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(g_arena || g_lms || g_ca) + { + if(p.alivetime <= 0) + continue; + } + else + { + if(p.classname != "player") + continue; + } if(clienttype(p) == CLIENTTYPE_REAL) {