From 1c1a4520cc404b915439f46f2b9b201d8a48d898 Mon Sep 17 00:00:00 2001 From: Lyberta Date: Mon, 28 Aug 2017 03:34:19 +0300 Subject: [PATCH] Survival: Use GameRules_scoring_add. --- qcsrc/server/mutators/mutator/gamemode_survival.qc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/qcsrc/server/mutators/mutator/gamemode_survival.qc b/qcsrc/server/mutators/mutator/gamemode_survival.qc index 1159348363..56ecb7f5f1 100644 --- a/qcsrc/server/mutators/mutator/gamemode_survival.qc +++ b/qcsrc/server/mutators/mutator/gamemode_survival.qc @@ -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) { -- 2.39.5