mirror of
https://github.com/ZDoom/gzdoom.git
synced 2024-11-26 05:51:20 +00:00
- removed the leftovers of the removed savedamount variable.
This commit is contained in:
parent
9dca095d08
commit
03828bb759
1 changed files with 2 additions and 2 deletions
|
@ -102,9 +102,9 @@ class MaxHealth : Health
|
|||
let player = PlayerPawn(other);
|
||||
if (player)
|
||||
{
|
||||
if (player.BonusHealth < savedAmount)
|
||||
if (player.BonusHealth < MaxAmount)
|
||||
{
|
||||
player.BonusHealth = min(player.BonusHealth + Amount, savedAmount);
|
||||
player.BonusHealth = min(player.BonusHealth + Amount, MaxAmount);
|
||||
success = true;
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue