]> git.rm.cloudns.org Git - xonotic/xonotic-data.pk3dir.git/commitdiff
Reset revive progress on respawn for every player. It fixes #1839
authorterencehill <piuntn@gmail.com>
Mon, 21 Nov 2016 22:33:08 +0000 (23:33 +0100)
committerterencehill <piuntn@gmail.com>
Mon, 21 Nov 2016 22:33:08 +0000 (23:33 +0100)
qcsrc/server/client.qc

index fa34eab94eb75d28e2702be7465a6dbebea0a7fe..04c35a11761ffbb05b04cec53c55919c53b4a55c 100644 (file)
@@ -339,6 +339,7 @@ void PutObserverInServer(entity this)
        this.hook_time = 0;
        this.deadflag = DEAD_NO;
        this.crouch = false;
+       this.revive_progress = 0;
        this.revival_time = 0;
 
        this.items = 0;
@@ -616,6 +617,7 @@ void PutClientInServer(entity this)
                this.strength_finished = 0;
                this.invincible_finished = 0;
                this.fire_endtime = -1;
+               this.revive_progress = 0;
                this.revival_time = 0;
                this.air_finished = time + 12;