From: Rudolf Polzer Date: Fri, 1 Feb 2013 13:38:00 +0000 (+0100) Subject: don't count alivetime in warmup X-Git-Tag: xonotic-v0.7.0~106 X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=880b27064e1c6895d3320aa00f4f471e005c574e;p=xonotic%2Fxonotic-data.pk3dir.git don't count alivetime in warmup --- diff --git a/qcsrc/server/cl_client.qc b/qcsrc/server/cl_client.qc index 3a54b6b32..70b16e9f4 100644 --- a/qcsrc/server/cl_client.qc +++ b/qcsrc/server/cl_client.qc @@ -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);