mirror of
https://github.com/nzp-team/quakec.git
synced 2025-02-17 01:11:13 +00:00
Fix crash with Abstinence Program achievement
This commit is contained in:
parent
85d723c5e4
commit
5b902d7d6e
1 changed files with 3 additions and 3 deletions
|
@ -436,9 +436,6 @@ void(entity victim,entity attacker, float damage, float d_style) DamageHandler =
|
||||||
if (d_style == S_ZOMBIE && nuke_powerup_active > time)
|
if (d_style == S_ZOMBIE && nuke_powerup_active > time)
|
||||||
return;
|
return;
|
||||||
|
|
||||||
// Abstinence Program
|
|
||||||
victim.ach_tracker_abst = 1;
|
|
||||||
|
|
||||||
entity old_self;
|
entity old_self;
|
||||||
if (victim.classname == "ai_zombie" || victim.classname == "ai_dog") {
|
if (victim.classname == "ai_zombie" || victim.classname == "ai_dog") {
|
||||||
|
|
||||||
|
@ -483,6 +480,9 @@ void(entity victim,entity attacker, float damage, float d_style) DamageHandler =
|
||||||
if (victim.flags & FL_GODMODE) {
|
if (victim.flags & FL_GODMODE) {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// Abstinence Program
|
||||||
|
victim.ach_tracker_abst = 1;
|
||||||
|
|
||||||
if (victim.perks & P_JUG)
|
if (victim.perks & P_JUG)
|
||||||
damage = ceil(damage*0.5);
|
damage = ceil(damage*0.5);
|
||||||
|
|
Loading…
Reference in a new issue