shithub: pokecrystal

Download patch

ref: 2c4777f3363cd64d05fb00084fd83dff8ac31674
parent: 2ae2ce4fde06a9cc87901a421f779bc25b87601e
author: Remy Oukaour <remy.oukaour@gmail.com>
date: Wed Dec 27 19:56:45 EST 2017

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

--- a/engine/mail.asm
+++ b/engine/mail.asm
@@ -383,7 +383,7 @@
 
 MailboxPC: ; 0x44806
 	xor a
-	ld [OBPals palette 6], a
+	ld [wCurMessageScrollPosition], a
 	ld a, 1
 	ld [wCurMessageIndex], a
 .loop
@@ -397,11 +397,11 @@
 
 	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
 
--- a/wram.asm
+++ b/wram.asm
@@ -1839,7 +1839,7 @@
 
 NEXTU ; d0f0
 ; mailbox data
-	ds 1
+wCurMessageScrollPosition:: db
 wCurMessageIndex:: db
 wMailboxCount:: db
 wMailboxItems:: ds MAILBOX_CAPACITY