]> de.git.xonotic.org Git - xonotic/xonotic-data.pk3dir.git/blobdiff - qcsrc/server/cl_client.qc
don't count alivetime in warmup
[xonotic/xonotic-data.pk3dir.git] / 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);