From 35dd130e5a5c48f558378b7fef3e93553f887e3c Mon Sep 17 00:00:00 2001 From: Forest Belton <65484+forestbelton@users.noreply.github.com> Date: Tue, 13 Jul 2021 23:23:25 -0400 Subject: [PATCH] Fix map row computation when viewport wraps --- src/map.s | 10 +--------- 1 file changed, 1 insertion(+), 9 deletions(-) diff --git a/src/map.s b/src/map.s index 11d83fe..68e4b8a 100644 --- a/src/map.s +++ b/src/map.s @@ -133,15 +133,7 @@ Map_Scroll:: cp [hl] jr nz, .scroll_down_check - ; B = CAMERA_X - SCX/8 - ld a, [rSCX] - srl a - srl a - srl a - ld b, a - ld a, [CURRENT_CAMERA_X] - sub b - ld b, a + LOAD_MAPX ; C = CAMERA_Y - 2 ld a, [CURRENT_CAMERA_Y]