- made AbsorbDamage work iteratively to avoid large stack use in the VM.

This commit is contained in:
Christoph Oelckers 2017-01-16 01:16:11 +01:00
commit cd0d17dbd5
6 changed files with 17 additions and 18 deletions

View file

@ -697,10 +697,6 @@ DEFINE_ACTION_FUNCTION(AInventory, BecomePickup)
void AInventory::AbsorbDamage (int damage, FName damageType, int &newdamage)
{
if (Inventory != NULL)
{
Inventory->AbsorbDamage (damage, damageType, newdamage);
}
}
//===========================================================================