- Fixed: UseHealthItems() gave you health equal to the number of items in

the stack of health items, rather than the item's proper amount.


SVN r1518 (trunk)
This commit is contained in:
Randy Heit 2009-04-03 01:25:06 +00:00
commit ccd3b2a6e1
2 changed files with 7 additions and 3 deletions

View file

@ -744,11 +744,11 @@ static int UseHealthItems(TArray<AInventory *> &Items, int &saveHealth)
if (Items[i]->health > maxhealth)
{
index = i;
maxhealth = Items[i]->Amount;
maxhealth = Items[i]->health;
}
}
// Now apply the health items, using the same logic as Heretic anf Hexen.
// Now apply the health items, using the same logic as Heretic and Hexen.
int count = (saveHealth + maxhealth-1) / maxhealth;
for(int i = 0; i < count; i++)
{