This website works better with JavaScript.
Home
Explore
Help
Sign In
forestbelton
/
island-story
Watch
1
Star
0
Fork
0
Code
Issues
0
Pull Requests
0
Projects
0
Releases
0
Wiki
Activity
Browse Source
Fix map row computation when viewport wraps
master
Forest Belton
3 years ago
parent
a3b48045c1
commit
35dd130e5a
1 changed files
with
1 additions
and
9 deletions
Unified View
Diff Options
Show Stats
Download Patch File
Download Diff File
+1
-9
src/map.s
+ 1
- 9
src/map.s
View File
@ -133,15 +133,7 @@ Map_Scroll::
cp
[
hl
]
cp
[
hl
]
jr
nz
,
.scroll_down_check
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
;
C
=
CAMERA_Y
-
2
ld
a
,
[
CURRENT_CAMERA_Y
]
ld
a
,
[
CURRENT_CAMERA_Y
]
Write
Preview
Loading…
Cancel
Save