]> git.rm.cloudns.org Git - xonotic/xonotic-data.pk3dir.git/commitdiff
Arena, LMS, CA: fix real vs spectator detection in player stats, fixes #1383
authorRudolf Polzer <divverent@xonotic.org>
Wed, 23 Jan 2013 13:07:26 +0000 (14:07 +0100)
committerRudolf Polzer <divverent@xonotic.org>
Wed, 23 Jan 2013 13:08:15 +0000 (14:08 +0100)
qcsrc/server/playerstats.qc

index 53f39091393a616b6dcb33399df15b66fec2ebda..dd4457f7282e9d622a1b666bf11a93df4c992c9d 100644 (file)
@@ -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)
                {