From 03828bb759b1e58749892a6cc1dc7a412ae9e591 Mon Sep 17 00:00:00 2001 From: Christoph Oelckers Date: Fri, 26 Apr 2019 12:00:58 +0200 Subject: [PATCH] - removed the leftovers of the removed savedamount variable. --- wadsrc/static/zscript/actors/inventory/health.zs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/wadsrc/static/zscript/actors/inventory/health.zs b/wadsrc/static/zscript/actors/inventory/health.zs index e6bc8e4c5..9ba0837b3 100644 --- a/wadsrc/static/zscript/actors/inventory/health.zs +++ b/wadsrc/static/zscript/actors/inventory/health.zs @@ -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; } }