- fixed a typo in armor damage calculation code.

SVN r1306 (trunk)
This commit is contained in:
Christoph Oelckers 2008-12-06 13:48:31 +00:00
parent a23fa3dbe3
commit fb75c46806

View file

@ -120,7 +120,7 @@ void ABasicArmor::AbsorbDamage (int damage, FName damageType, int &newdamage)
} }
else else
{ {
saved += full + FixedMul (damage - full, SavePercent); saved = full + FixedMul (damage - full, SavePercent);
if (MaxAbsorb > 0 && saved + AbsorbCount > MaxAbsorb) if (MaxAbsorb > 0 && saved + AbsorbCount > MaxAbsorb)
{ {
saved = MAX(0, MaxAbsorb - AbsorbCount); saved = MAX(0, MaxAbsorb - AbsorbCount);