diff --git a/src/overworld.c b/src/overworld.c index 53b693a834..8bcbc17aaa 100644 --- a/src/overworld.c +++ b/src/overworld.c @@ -1529,7 +1529,7 @@ void UpdatePalettesWithTime(u32 palettes) { if (GetSpritePaletteTagByPaletteNum(i) >> 15) // Don't blend special sprite palette tags palettes &= ~(1 << (i + 16)); } - palettes &= ~0xE000; // Don't blend tile palettes [13,15] + palettes &= 0xFFFF1FFF; // Don't blend tile palettes [13,15] if (!palettes) return; TimeMixPalettes(palettes, diff --git a/src/palette.c b/src/palette.c index 9015a42ee8..704740a067 100644 --- a/src/palette.c +++ b/src/palette.c @@ -526,7 +526,7 @@ static u8 UpdateTimeOfDayPaletteFade(void) } } else { // tile palettes, don't blend [13, 15] - timePalettes = selectedPalettes &= ~0xE000; + timePalettes = selectedPalettes & 0x1FFF; } TimeMixPalettes(timePalettes, src, dst, &bld0, &bld1, gPaletteFade.weight);