Skip to content
Open
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions src/gui/windows/healthbar.zig
Original file line number Diff line number Diff line change
Expand Up @@ -52,9 +52,9 @@ pub fn render() void {
x = 0;
y += 20;
}
if(health + 1 <= main.game.Player.super.health) {
if(health + 0.5 < main.game.Player.super.health) {
heartTexture.bindTo(0);
} else if(health + 0.5 <= main.game.Player.super.health) {
} else if(health < main.game.Player.super.health) {
halfHeartTexture.bindTo(0);
} else {
deadHeartTexture.bindTo(0);
Expand Down