]> git.rm.cloudns.org Git - xonotic/xonotic-data.pk3dir.git/commitdiff
don't count alivetime in warmup
authorRudolf Polzer <divverent@xonotic.org>
Fri, 1 Feb 2013 13:38:00 +0000 (14:38 +0100)
committerRudolf Polzer <divverent@xonotic.org>
Fri, 1 Feb 2013 13:38:00 +0000 (14:38 +0100)
qcsrc/server/cl_client.qc

index 3a54b6b323a32c2073f4f5624219549500f2e39c..70b16e9f4653938f67fd1f7698ed7bc42bf9b7c8 100644 (file)
@@ -407,10 +407,11 @@ void PutObserverInServer (void)
        minstagib_stop_countdown(self);
 
        Portal_ClearAll(self);
-
+       
        if(self.alivetime)
        {
-               PlayerStats_Event(self, PLAYERSTATS_ALIVETIME, time - self.alivetime);
+               if(!g_warmup)
+                       PlayerStats_Event(self, PLAYERSTATS_ALIVETIME, time - self.alivetime);
                self.alivetime = 0;
        }
 
@@ -922,8 +923,9 @@ void PutClientInServer (void)
                self.weaponname = "";
                self.switchingweapon = 0;
 
-               if(!self.alivetime)
-                       self.alivetime = time;
+               if(!g_warmup)
+                       if(!self.alivetime)
+                               self.alivetime = time;
 
                antilag_clear(self);