Skip to content

Commit

Permalink
fix SGB bug on gameover by setting PAL_GENERIC
Browse files Browse the repository at this point in the history
  • Loading branch information
danielah05 committed Jun 3, 2022
1 parent e8656cb commit 3600b4f
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions engine/battle/core.asm
Original file line number Diff line number Diff line change
Expand Up @@ -1193,6 +1193,8 @@ GameOverScript:
ld a, SFX_STOP_ALL_MUSIC
call PlaySound ; kill music
; pretty much get rid of the game, its time to draw the game over screen!
ld b, SET_PAL_GENERIC
call RunPaletteCommand ; set palette to generic to avoid wrong colors on SGB
ld de, BuriedGameOverPic
lb bc, BANK(BuriedGameOverPic), $00
call DisplayPicCentered ; render game over image
Expand Down

0 comments on commit 3600b4f

Please sign in to comment.