diff options
| author | Freya Murphy <freya@freyacat.org> | 2025-11-07 19:02:07 -0500 |
|---|---|---|
| committer | Freya Murphy <freya@freyacat.org> | 2025-11-07 19:02:07 -0500 |
| commit | 090bb0fe37a1fda0135a84ef9c64fce4ed763dba (patch) | |
| tree | 299c196731ada67734e588b7da41070df0f4de2e /graphics/src/render.rs | |
| parent | graphics: switch font to NES (copyright?!), also fix crash when screen super ... (diff) | |
| download | DungeonCrawl-090bb0fe37a1fda0135a84ef9c64fce4ed763dba.tar.gz DungeonCrawl-090bb0fe37a1fda0135a84ef9c64fce4ed763dba.tar.bz2 DungeonCrawl-090bb0fe37a1fda0135a84ef9c64fce4ed763dba.zip | |
graphics: fix minimap offset bug
Diffstat (limited to 'graphics/src/render.rs')
| -rw-r--r-- | graphics/src/render.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/graphics/src/render.rs b/graphics/src/render.rs index 03e7f23..a6b9af0 100644 --- a/graphics/src/render.rs +++ b/graphics/src/render.rs @@ -455,8 +455,8 @@ impl Renderer { let dot_size = (size / MAP_SIZE).max(1); let mut draw_dot = |pos: Pos, color| { let (x, y) = pos.xy(); - let offset_x = x * size / MAP_SIZE; - let offset_y = y * size / MAP_SIZE; + let offset_x = x * (size / MAP_SIZE); + let offset_y = y * (size / MAP_SIZE); r.draw_rectangle_ext( minimap_x + offset_x, minimap_y + offset_y, |