From 7966b5374692b0b91a767caec0d4c2d34adcd6c4 Mon Sep 17 00:00:00 2001 From: Lyberta Date: Sat, 26 Aug 2017 18:53:45 +0300 Subject: [PATCH] Use g_balance_health/armor_limit in GivePlayerStuff. --- qcsrc/common/t_items.qc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/qcsrc/common/t_items.qc b/qcsrc/common/t_items.qc index 61bc7dc57..81f45d6c2 100644 --- a/qcsrc/common/t_items.qc +++ b/qcsrc/common/t_items.qc @@ -655,7 +655,7 @@ void GivePlayerHealth(entity player, float amount) return; } player.health = bound(player.health, player.health + amount, - g_pickup_healthmega_max); + autocvar_g_balance_health_limit); player.pauserothealth_finished = max(player.pauserothealth_finished, time + autocvar_g_balance_pause_health_rot); } @@ -667,7 +667,7 @@ void GivePlayerArmor(entity player, float amount) return; } player.armorvalue = bound(player.armorvalue, player.armorvalue + amount, - g_pickup_armormega_max); + autocvar_g_balance_armor_limit); player.pauserotarmor_finished = max(player.pauserotarmor_finished, time + autocvar_g_balance_pause_armor_rot); } -- 2.39.2