mirror of
https://github.com/ZDoom/gzdoom-gles.git
synced 2024-11-28 06:53:40 +00:00
- fixed a typo in armor damage calculation code.
SVN r1306 (trunk)
This commit is contained in:
parent
a23fa3dbe3
commit
fb75c46806
1 changed files with 1 additions and 1 deletions
|
@ -120,7 +120,7 @@ void ABasicArmor::AbsorbDamage (int damage, FName damageType, int &newdamage)
|
|||
}
|
||||
else
|
||||
{
|
||||
saved += full + FixedMul (damage - full, SavePercent);
|
||||
saved = full + FixedMul (damage - full, SavePercent);
|
||||
if (MaxAbsorb > 0 && saved + AbsorbCount > MaxAbsorb)
|
||||
{
|
||||
saved = MAX(0, MaxAbsorb - AbsorbCount);
|
||||
|
|
Loading…
Reference in a new issue