- 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:
parent
08730b941b
commit
ccd3b2a6e1
2 changed files with 7 additions and 3 deletions
|
|
@ -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++)
|
||||
{
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue