mirror of
https://github.com/ZDoom/qzdoom.git
synced 2024-11-10 23:02:08 +00:00
- fixed minimum damage check in PowerDamage.
This commit is contained in:
parent
5d528fe317
commit
e1a683b9ec
1 changed files with 1 additions and 1 deletions
|
@ -1629,7 +1629,7 @@ void APowerDamage::ModifyDamage(int damage, FName damageType, int &newdamage, bo
|
|||
DmgFactors *df = GetClass()->DamageFactors;
|
||||
if (df != NULL && df->CountUsed() != 0)
|
||||
{
|
||||
newdam = MIN(1, df->Apply(damageType, damage));// don't allow zero damage as result of an underflow
|
||||
newdam = MAX(1, df->Apply(damageType, damage));// don't allow zero damage as result of an underflow
|
||||
}
|
||||
else
|
||||
{
|
||||
|
|
Loading…
Reference in a new issue