Browse Source

Fix map row computation when viewport wraps

master
Forest Belton 2 years ago
parent
commit
35dd130e5a
1 changed files with 1 additions and 9 deletions
  1. +1
    -9
      src/map.s

+ 1
- 9
src/map.s View File

@ -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]

Loading…
Cancel
Save