*** empty log message ***
git-svn-id: https://svn.code.sf.net/p/fteqw/code/trunk@1797 fc73d0e0-1445-4013-8a0c-d673dee63da5
This commit is contained in:
parent
eb02cb9efa
commit
b6b20b55ed
1 changed files with 8 additions and 0 deletions
|
@ -299,6 +299,14 @@ void(entity targ, entity inflictor, entity attacker, float damage) T_Damage =
|
|||
default:
|
||||
break;
|
||||
}
|
||||
|
||||
if (damage <= 0)
|
||||
{
|
||||
damage = 0;
|
||||
sound (targ, CHAN_BODY, targ.armornoise, 1, ATTN_NORM);
|
||||
return;
|
||||
}
|
||||
|
||||
targ.health = targ.health - take;
|
||||
|
||||
if (targ.health <= 0)
|
||||
|
|
Loading…
Reference in a new issue