Skip to content

Commit d75a7a3

Browse files
authored
Merge pull request #30 from Engezerstorung/master
Fix healing machine pokeballs in Indigo plateau lobby and slots machines
2 parents 98178cf + 653f7e2 commit d75a7a3

File tree

2 files changed

+7
-1
lines changed

2 files changed

+7
-1
lines changed

color/color.asm

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -453,7 +453,10 @@ SetPal_Slots:
453453

454454
xor a
455455
ldh [rSVBK], a
456-
ret
456+
457+
; Wait 3 frames to allow tilemap updates to apply. Prevents garbage
458+
; Prevents garbage from appearing when the slots machine open.
459+
jp Delay3
457460

458461
; Titlescreen with cycling pokemon
459462
SetPal_TitleScreen:

color/sprites.asm

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,9 @@ LoadOverworldSpritePalettes:
3838
ld hl, SpritePalettesPokecenter
3939
cp POKECENTER
4040
jr z, .gotPaletteList
41+
ld a, [wCurMap]
42+
cp INDIGO_PLATEAU_LOBBY
43+
jr z, .gotPaletteList
4144
; If not, load the normal Object Pals
4245
ld hl, SpritePalettes
4346
.gotPaletteList

0 commit comments

Comments
 (0)