]> de.git.xonotic.org Git - xonotic/xonotic-data.pk3dir.git/commitdiff
simplify spectating detection logic, fixes #1383 again too
authorRudolf Polzer <divverent@xonotic.org>
Wed, 23 Jan 2013 13:18:24 +0000 (14:18 +0100)
committerRudolf Polzer <divverent@xonotic.org>
Wed, 23 Jan 2013 13:18:24 +0000 (14:18 +0100)
qcsrc/server/playerstats.qc

index 365115d674a5103f8766b5fa05bea647ac67660f..e6c69ad49ad07252deade0bbd98e410a6dc64634 100644 (file)
@@ -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)
                {