From: Mario Date: Thu, 23 Jan 2020 22:39:45 +0000 (+1000) Subject: Fix a missed use of .health X-Git-Tag: xonotic-v0.8.5~851^2~11 X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=0c78de44ae6acaac3f740c606bfbdeca58853aef;p=xonotic%2Fxonotic-data.pk3dir.git Fix a missed use of .health --- diff --git a/qcsrc/common/turrets/sv_turrets.qc b/qcsrc/common/turrets/sv_turrets.qc index fff1b3991..d8587b14a 100644 --- a/qcsrc/common/turrets/sv_turrets.qc +++ b/qcsrc/common/turrets/sv_turrets.qc @@ -402,7 +402,7 @@ void load_unit_settings(entity ent, bool is_reload) ent.ammo_max *= ent.turret_scale_ammo; ent.ammo_recharge *= ent.turret_scale_ammo; ent.aim_speed *= ent.turret_scale_aim; - ent.health *= ent.turret_scale_health; + SetResourceExplicit(ent, RES_HEALTH, GetResource(ent, RES_HEALTH) * ent.turret_scale_health); ent.respawntime *= ent.turret_scale_respawn; ent.shot_dmg *= ent.turret_scale_damage; ent.shot_refire *= ent.turret_scale_refire;