From: Lyberta Date: Thu, 23 Mar 2017 07:34:09 +0000 (+0300) Subject: Fixed PlayerRegen bug. X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=c005945c6c70bca7ffccb0247519761059e4af24;p=xonotic%2Fxonotic-data.pk3dir.git Fixed PlayerRegen bug. --- diff --git a/qcsrc/server/mutators/mutator/gamemode_survival.qc b/qcsrc/server/mutators/mutator/gamemode_survival.qc index e80d7e147..254c3e1c9 100644 --- a/qcsrc/server/mutators/mutator/gamemode_survival.qc +++ b/qcsrc/server/mutators/mutator/gamemode_survival.qc @@ -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;