mirror of
https://github.com/ZDoom/qzdoom.git
synced 2024-11-24 13:01:47 +00:00
- fixed incorrect check for negative damage in APowerProtection::ModifyDamage.
This commit is contained in:
parent
bcebeadedc
commit
1f1a0ca847
1 changed files with 1 additions and 1 deletions
|
@ -1704,7 +1704,7 @@ void APowerProtection::ModifyDamage(int damage, FName damageType, int &newdamage
|
|||
DmgFactors *df = GetClass()->DamageFactors;
|
||||
if (df != NULL && df->CountUsed() != 0)
|
||||
{
|
||||
newdam = MIN(0, df->Apply(damageType, damage));
|
||||
newdam = MAX(0, df->Apply(damageType, damage));
|
||||
}
|
||||
else
|
||||
{
|
||||
|
|
Loading…
Reference in a new issue