- 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
1 changed files with 1 additions and 1 deletions

View File

@ -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);