{
//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)
{