]> git.rm.cloudns.org Git - xonotic/xonotic-data.pk3dir.git/commitdiff
Survival: Use GameRules_scoring_add.
authorLyberta <lyberta@lyberta.net>
Mon, 28 Aug 2017 00:34:19 +0000 (03:34 +0300)
committerLyberta <lyberta@lyberta.net>
Mon, 28 Aug 2017 00:34:19 +0000 (03:34 +0300)
qcsrc/server/mutators/mutator/gamemode_survival.qc

index 11593483631ba077a1d4c2dd65a2aa840290567e..56ecb7f5f17f2ac81d3121543c1b0fd4e8331a05 100644 (file)
@@ -2012,7 +2012,7 @@ MUTATOR_HOOKFUNCTION(surv, PlayerDamaged)
                float health = M_ARGV(2, float);
                float armor = M_ARGV(3, float);
                float score = (health + armor) * autocvar_g_surv_attacker_damage_score;
-               PlayerScore_Add(attacker, SP_SCORE, score);
+               GameRules_scoring_add(attacker, SCORE, score);
        }
        if (autocvar_g_surv_stealth)
        {