diff options
| author | Freya Murphy <freya@freyacat.org> | 2025-11-19 22:20:56 -0500 |
|---|---|---|
| committer | Freya Murphy <freya@freyacat.org> | 2025-11-19 22:20:56 -0500 |
| commit | f0e715fd3fad342c785a5b4a8637cedfaccb8731 (patch) | |
| tree | cb07fa591e78c4bac440a0a1e9f2ece461d045a0 /graphics | |
| parent | nix: fix fenix flake and update lock (diff) | |
| download | DungeonCrawl-f0e715fd3fad342c785a5b4a8637cedfaccb8731.tar.gz DungeonCrawl-f0e715fd3fad342c785a5b4a8637cedfaccb8731.tar.bz2 DungeonCrawl-f0e715fd3fad342c785a5b4a8637cedfaccb8731.zip | |
dungeon: implement items
Diffstat (limited to 'graphics')
| -rw-r--r-- | graphics/src/render.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/graphics/src/render.rs b/graphics/src/render.rs index 02bc61c..208dafb 100644 --- a/graphics/src/render.rs +++ b/graphics/src/render.rs @@ -665,7 +665,7 @@ impl Renderer { where R: RaylibDraw, { - let health = player.entity.health.unwrap_or(0); + let health = player.entity.health; let damage = 0; // TODO: calc damage const TEXT_WIDTH: u16 = FONT_SIZE * 3 + UI_PADDING; |