]> de.git.xonotic.org Git - xonotic/xonotic-data.pk3dir.git/blobdiff - qcsrc/server/client.qc
Some cleanup of the buff code revolving around timers (and supporting them on legacy...
[xonotic/xonotic-data.pk3dir.git] / qcsrc / server / client.qc
index f43785bbb2fce697784fb80c1511541d6466fa56..7e2f0cf02ab878525ac6e50dae2b285cb90febd9 100644 (file)
@@ -640,6 +640,10 @@ void PutPlayerInServer(entity this)
        STAT(REVIVE_PROGRESS, this) = 0;
        this.revival_time = 0;
 
+       // TODO: we can't set these in the PlayerSpawn hook since the target code is called before it!
+       STAT(BUFFS, this) = 0;
+       STAT(BUFF_TIME, this) = 0;
+
        this.air_finished = time + 12;
        this.waterlevel = WATERLEVEL_NONE;
        this.watertype = CONTENT_EMPTY;