Skip to content

Commit

Permalink
fix healthbar misplacement in inventory
Browse files Browse the repository at this point in the history
  • Loading branch information
rr- committed Feb 22, 2021
1 parent 8895dfe commit 014aa11
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions src/game/health.c
Original file line number Diff line number Diff line change
Expand Up @@ -8,12 +8,6 @@

void DrawGameInfo()
{
#ifdef T1M_FEAT_UI
for (int i = 0; i < 6; i++) {
BarOffsetY[i] = 0;
}
#endif

DrawAmmoInfo();
if (OverlayFlag > 0) {
DrawHealthBar();
Expand All @@ -29,6 +23,12 @@ void DrawGameInfo()

void DrawHealthBar()
{
#ifdef T1M_FEAT_UI
for (int i = 0; i < 6; i++) {
BarOffsetY[i] = 0;
}
#endif

int hit_points = LaraItem->hit_points;
if (hit_points < 0) {
hit_points = 0;
Expand Down

0 comments on commit 014aa11

Please sign in to comment.