From 2c4777f3363cd64d05fb00084fd83dff8ac31674 Mon Sep 17 00:00:00 2001 From: Remy Oukaour Date: Thu, 28 Dec 2017 00:56:45 -0500 Subject: [PATCH] 05:OBPals+6*8 == 01:wCurMessageScrollPosition (new) --- engine/mail.asm | 6 +++--- wram.asm | 2 +- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/engine/mail.asm b/engine/mail.asm index 90fcc5548..0335a6dfe 100755 --- a/engine/mail.asm +++ b/engine/mail.asm @@ -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 diff --git a/wram.asm b/wram.asm index 5c0cd5929..2f9b8dda7 100644 --- a/wram.asm +++ b/wram.asm @@ -1839,7 +1839,7 @@ CurElevatorFloors:: db NEXTU ; d0f0 ; mailbox data - ds 1 +wCurMessageScrollPosition:: db wCurMessageIndex:: db wMailboxCount:: db wMailboxItems:: ds MAILBOX_CAPACITY