Skip to content

Commit

Permalink
if hotbar on top then healthbar also on top
Browse files Browse the repository at this point in the history
  • Loading branch information
IAmMoltony committed Feb 7, 2024
1 parent 8091e03 commit 5c0c3a6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion source/player.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -816,7 +816,7 @@ void Player::drawHUD(const Camera &camera, Font &font, Font &fontRu)
for (u8 i = 0; i < 10; ++i)
{
u8 xxHeart = SCREEN_WIDTH - 9 - i / 2 * 9;
u8 yyHeart = SCREEN_HEIGHT - 9;
u8 yyHeart = SettingsManager::hotbarOnTop ? 0 : SCREEN_HEIGHT - 9;

// if there is 2 or less health then we SHAKE
if (health <= 2)
Expand Down

0 comments on commit 5c0c3a6

Please sign in to comment.