summaryrefslogtreecommitdiff
path: root/graphics/src
diff options
context:
space:
mode:
Diffstat (limited to 'graphics/src')
-rw-r--r--graphics/src/render.rs4
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,