]> git.rm.cloudns.org Git - xonotic/xonotic-data.pk3dir.git/commitdiff
Set a max revival time of 1 minute
authorterencehill <piuntn@gmail.com>
Sun, 10 Mar 2013 18:38:40 +0000 (19:38 +0100)
committerterencehill <piuntn@gmail.com>
Sun, 10 Mar 2013 18:38:40 +0000 (19:38 +0100)
qcsrc/server/mutators/gamemode_freezetag.qc

index 6ba51a0b90776400c3951f46477c6876d0e9846f..3f8094e16ba2eec6bd5460dbd257b89b9f4c75ea 100644 (file)
@@ -467,7 +467,7 @@ MUTATOR_HOOKFUNCTION(freezetag_PlayerPreThink)
 
        if(n && self.freezetag_frozen) // OK, there is at least one teammate reviving us
        {
-               self.freezetag_revive_progress = bound(0, self.freezetag_revive_progress + frametime * autocvar_g_freezetag_revive_speed, 1);
+               self.freezetag_revive_progress = bound(0, self.freezetag_revive_progress + frametime * max(1/60, autocvar_g_freezetag_revive_speed), 1);
                self.health = max(1, self.freezetag_revive_progress * autocvar_g_balance_health_start);
 
                if(self.freezetag_revive_progress >= 1)