shithub: pokecrystal

Download patch

ref: 5db31feba93b10a2d629cf88a9ca7096d4b1c9ae
parent: 81ba6c848aaada66cf2026ba765a48c98893431a
author: Remy Oukaour <remy.oukaour@gmail.com>
date: Sun Jan 21 11:53:19 EST 2018

POKEDEX_SCX

--- a/engine/pokedex.asm
+++ b/engine/pokedex.asm
@@ -15,8 +15,8 @@
 	const DEXSTATE_UPDATE_UNOWN_MODE
 	const DEXSTATE_EXIT
 
-POKDEX_SCX EQU 5
-GLOBAL POKDEX_SCX
+POKEDEX_SCX EQU 5
+GLOBAL POKEDEX_SCX
 
 Pokedex: ; 40000
 
@@ -233,7 +233,7 @@
 	call Pokedex_SetBGMapMode_3ifDMG_4ifCGB
 	call Pokedex_ResetBGMapMode
 	call Pokedex_DrawMainScreenBG
-	ld a, POKDEX_SCX
+	ld a, POKEDEX_SCX
 	ld [hSCX], a
 
 	ld a, [wCurrentDexMode]
@@ -453,7 +453,7 @@
 	ld [hBGMapMode], a
 	ld a, $90
 	ld [hWY], a
-	ld a, POKDEX_SCX
+	ld a, POKEDEX_SCX
 	ld [hSCX], a
 	call DelayFrame
 	call Pokedex_RedisplayDexEntry
@@ -497,7 +497,7 @@
 	call Pokedex_RedisplayDexEntry
 	call EnableLCD
 	call WaitBGMap
-	ld a, POKDEX_SCX
+	ld a, POKEDEX_SCX
 	ld [hSCX], a
 	call Pokedex_ApplyUsualPals
 	ret
@@ -733,7 +733,7 @@
 	call Pokedex_SetBGMapMode3
 	call Pokedex_ResetBGMapMode
 	call Pokedex_DrawSearchResultsScreenBG
-	ld a, POKDEX_SCX
+	ld a, POKEDEX_SCX
 	ld [hSCX], a
 	ld a, $4a
 	ld [hWX], a
--- a/engine/routines/newpokedexentry.asm
+++ b/engine/routines/newpokedexentry.asm
@@ -11,7 +11,7 @@
 	ld a, [wPokedexStatus]
 	push af
 	ld a, [hSCX]
-	add POKDEX_SCX
+	add POKEDEX_SCX
 	ld [hSCX], a
 	xor a
 	ld [wPokedexStatus], a
@@ -26,7 +26,7 @@
 	call MaxVolume
 	call RotateThreePalettesRight
 	ld a, [hSCX]
-	add -POKDEX_SCX
+	add -POKEDEX_SCX
 	ld [hSCX], a
 	call .ReturnFromDexRegistration
 	pop af