From 3600b4f4c4427528bf40713e2e46048d96075c4b Mon Sep 17 00:00:00 2001 From: danielah05 Date: Fri, 3 Jun 2022 17:42:25 +0200 Subject: [PATCH] fix SGB bug on gameover by setting PAL_GENERIC --- engine/battle/core.asm | 2 ++ 1 file changed, 2 insertions(+) diff --git a/engine/battle/core.asm b/engine/battle/core.asm index 5fd4963e..293dc97c 100644 --- a/engine/battle/core.asm +++ b/engine/battle/core.asm @@ -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