]> git.rm.cloudns.org Git - xonotic/xonotic-data.pk3dir.git/commitdiff
Fixed PlayerRegen bug.
authorLyberta <lyberta@lyberta.net>
Thu, 23 Mar 2017 07:34:09 +0000 (10:34 +0300)
committerLyberta <lyberta@lyberta.net>
Thu, 23 Mar 2017 07:34:09 +0000 (10:34 +0300)
qcsrc/server/mutators/mutator/gamemode_survival.qc

index e80d7e1471710610e0868a5aba17e66260a74680..254c3e1c9870f03435911857ec2eddcf9cab6eaa 100644 (file)
@@ -1482,7 +1482,7 @@ MUTATOR_HOOKFUNCTION(surv, FixPlayermodel)
 /// regenerate.
 MUTATOR_HOOKFUNCTION(surv, PlayerRegen)
 {
-       entity player = M_ARGV(1, entity);
+       entity player = M_ARGV(0, entity);
        if (player.team == surv_defenderteam)
        {
                return true;