From b6f0c4071dc3cde6b0dca86a26ce9093da133385 Mon Sep 17 00:00:00 2001 From: Kevin Caccamo Date: Sat, 8 Aug 2020 01:26:59 -0400 Subject: [PATCH] Fix the health bar on Strife status bar (#1080) * Fix the health bar on Strife status bar Now, if the player's health is above 100, the green health bar won't be shortened any more. * Fix the bar properly Now, the blue and green bars don't overlap. Also, health above 100 goes from right to left, like in Strife: Veteran Edition. --- wadsrc/static/zscript/ui/statusbar/strife_sbar.zs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/wadsrc/static/zscript/ui/statusbar/strife_sbar.zs b/wadsrc/static/zscript/ui/statusbar/strife_sbar.zs index 912effbb4..f52195be4 100644 --- a/wadsrc/static/zscript/ui/statusbar/strife_sbar.zs +++ b/wadsrc/static/zscript/ui/statusbar/strife_sbar.zs @@ -251,7 +251,7 @@ class StrifeStatusBar : BaseStatusBar { int stopp = 200 - health; FillBar (x, y, 0, stopp, green1, green2); - FillBar (x, y, stopp, 100, blue1, blue2); + FillBar (x + stopp * 2, y, stopp, 100, blue1, blue2); } } }