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.
This commit is contained in:
Kevin Caccamo 2020-08-08 01:26:59 -04:00 committed by GitHub
parent 5f8b313446
commit b6f0c4071d
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -251,7 +251,7 @@ class StrifeStatusBar : BaseStatusBar
{ {
int stopp = 200 - health; int stopp = 200 - health;
FillBar (x, y, 0, stopp, green1, green2); FillBar (x, y, 0, stopp, green1, green2);
FillBar (x, y, stopp, 100, blue1, blue2); FillBar (x + stopp * 2, y, stopp, 100, blue1, blue2);
} }
} }
} }