05:OBPals+6*8 == 01:wCurMessageScrollPosition (new)

This commit is contained in:
Remy Oukaour 2017-12-28 00:56:45 -05:00
parent 2ae2ce4fde
commit 2c4777f336
2 changed files with 4 additions and 4 deletions

View File

@ -383,7 +383,7 @@ MailboxPC_PrintMailAuthor: ; 0x447fb
MailboxPC: ; 0x44806
xor a
ld [OBPals palette 6], a
ld [wCurMessageScrollPosition], a
ld a, 1
ld [wCurMessageIndex], a
.loop
@ -397,11 +397,11 @@ MailboxPC: ; 0x44806
ld a, [wCurMessageIndex]
ld [wMenuCursorBuffer], a
ld a, [OBPals palette 6]
ld a, [wCurMessageScrollPosition]
ld [wMenuScrollPosition], a
call ScrollingMenu
ld a, [wMenuScrollPosition]
ld [OBPals palette 6], a
ld [wCurMessageScrollPosition], a
ld a, [wMenuCursorY]
ld [wCurMessageIndex], a

View File

@ -1839,7 +1839,7 @@ CurElevatorFloors:: db
NEXTU ; d0f0
; mailbox data
ds 1
wCurMessageScrollPosition:: db
wCurMessageIndex:: db
wMailboxCount:: db
wMailboxItems:: ds MAILBOX_CAPACITY