Gamma shift now ignores special sprite palette tags (lights, emotes).
This commit is contained in:
parent
b46a8b16ca
commit
c82510e22b
@ -494,7 +494,10 @@ static void ApplyGammaShift(u8 startPalIndex, u8 numPalettes, s8 gammaIndex)
|
||||
{
|
||||
u8 r, g, b;
|
||||
|
||||
if (sPaletteGammaTypes[curPalIndex] == GAMMA_ALT || curPalIndex - 16 == gWeatherPtr->altGammaSpritePalIndex)
|
||||
// don't blend special sprite palette tags
|
||||
if (sPaletteGammaTypes[curPalIndex] == GAMMA_ALT ||
|
||||
(curPalIndex >= 16 && (curPalIndex - 16 == gWeatherPtr->altGammaSpritePalIndex ||
|
||||
GetSpritePaletteTagByPaletteNum(curPalIndex - 16) >> 15)))
|
||||
gammaTable = gWeatherPtr->altGammaShifts[gammaIndex];
|
||||
else
|
||||
gammaTable = gWeatherPtr->gammaShifts[gammaIndex];
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user