From 4fda1e6d044c3843a573f9860dbd859745d53890 Mon Sep 17 00:00:00 2001 From: Lukas Krickl Date: Sun, 11 May 2025 17:47:05 +0200 Subject: [PATCH] unit: fixed scroll offset calculation --- src/unit.s | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/unit.s b/src/unit.s index 365f572..06e8565 100644 --- a/src/unit.s +++ b/src/unit.s @@ -78,7 +78,7 @@ unit_generic_draw: ld a, [de] mul8 a add a, OBJ_OFF_Y - add a, b + sub a, b ld [hl+], a ; set x pos @@ -86,7 +86,7 @@ unit_generic_draw: ld a, [de] mul8 a add a, OBJ_OFF_X - add a, b + sub a, c ld [hl+], a pop bc ; bc = inputs again -- 2.30.2