From 542c1e388cd5805b74167d9f346a494e52a4a990 Mon Sep 17 00:00:00 2001 From: Lukas Krickl Date: Mon, 12 May 2025 18:31:18 +0200 Subject: [PATCH] unit: camera now ceners on selected unit --- src/unit.s | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/unit.s b/src/unit.s index 78a9887..f5fd020 100644 --- a/src/unit.s +++ b/src/unit.s @@ -230,10 +230,12 @@ unit_scroll_center: add hl, de ; hl = pos y ld a, [hl+] + sub a, (MAP_H - 10) / 2 mul8 a ld [scroll_y], a ld a, [hl] + sub a, (MAP_W - 12) / 2 mul8 a ld [scroll_x], a -- 2.30.2