From 8acffea515d1daf28e1d7763d76a94ceefda07c7 Mon Sep 17 00:00:00 2001 From: scawful Date: Sat, 12 Oct 2024 10:44:00 -0400 Subject: [PATCH] Add MosaicFix for ZCustomOverworld day/night bg on mosaic trans --- Overworld/ZCustomOverworld2.asm | 5 ++++- Overworld/time_system.asm | 10 ++++++++++ 2 files changed, 14 insertions(+), 1 deletion(-) diff --git a/Overworld/ZCustomOverworld2.asm b/Overworld/ZCustomOverworld2.asm index 74d8133..9d323f4 100644 --- a/Overworld/ZCustomOverworld2.asm +++ b/Overworld/ZCustomOverworld2.asm @@ -1779,7 +1779,10 @@ CheckForChangeGraphicsTransitionLoad: ; Set transparent color. only set the buffer so it fades in right ; during mosaic transition. - STA.l $7EC300 : STA.l $7EC340 + JSL Oracle_MosaicFix + NOP #4 + ;STA.l $7EC300 + ;STA.l $7EC340 LDX.w #$4020 : STX.b $9C LDX.w #$8040 : STX.b $9D diff --git a/Overworld/time_system.asm b/Overworld/time_system.asm index cf305b7..4d4f56e 100644 --- a/Overworld/time_system.asm +++ b/Overworld/time_system.asm @@ -399,6 +399,16 @@ BackgroundFix: RTL } +MosaicFix: +{ + BEQ + + JSL ColorSubEffect + + + STA.l PaletteBuffer_HUD + STA.l PaletteBuffer_BG + RTL +} + SubAreasFix: { BEQ .no_effect