From: Lukas Krickl Date: Sun, 11 May 2025 15:47:05 +0000 (+0200) Subject: unit: fixed scroll offset calculation X-Git-Url: https://git.krickl.dev/?a=commitdiff_plain;h=4fda1e6d044c3843a573f9860dbd859745d53890;p=gbrg%2F.git unit: fixed scroll offset calculation --- 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