From 25d112c0b082e4ef51485267c01feae4ecd3a832 Mon Sep 17 00:00:00 2001 From: xCrystal Date: Thu, 10 Aug 2023 12:54:59 +0200 Subject: [PATCH] Fix BG Map Mode bug in Pokedex graphics (#7) (bug fix to acd022d7652fdf5e3cf50ab11929cee71135d622) --- engine/pokedex/pokedex.asm | 13 ++++++------- 1 file changed, 6 insertions(+), 7 deletions(-) diff --git a/engine/pokedex/pokedex.asm b/engine/pokedex/pokedex.asm index 7c79fe244..121edf6d2 100644 --- a/engine/pokedex/pokedex.asm +++ b/engine/pokedex/pokedex.asm @@ -218,7 +218,7 @@ Pokedex_InitMainScreen: ld a, 7 ld [wDexListingHeight], a call Pokedex_PrintListing - call Pokedex_SetBGMapMode4 + call Pokedex_SetBGMapMode4And3 call Pokedex_ResetBGMapMode call Pokedex_DrawMainScreenBG ld a, POKEDEX_SCX @@ -713,7 +713,7 @@ Pokedex_InitSearchResultsScreen: hlcoord 0, 0, wAttrmap ld bc, SCREEN_WIDTH * SCREEN_HEIGHT call ByteFill - call Pokedex_SetBGMapMode4 + call Pokedex_SetBGMapMode4And3 call Pokedex_ResetBGMapMode farcall DrawPokedexSearchResultsWindow call Pokedex_PlaceSearchResultsTypeStrings @@ -2519,15 +2519,14 @@ _NewPokedexEntry: call PlayMonCry ret -Pokedex_SetBGMapMode3: - ld a, $3 +Pokedex_SetBGMapMode4And3: + ld a, $4 ldh [hBGMapMode], a ld c, 4 call DelayFrames - ret -Pokedex_SetBGMapMode4: - ld a, $4 +Pokedex_SetBGMapMode3: + ld a, $3 ldh [hBGMapMode], a ld c, 4 call DelayFrames