Removed superflous palette compression check (#7718)

Co-authored-by: Hedara <hedara90@gmail.com>
This commit is contained in:
hedara90 2025-09-11 16:14:23 +02:00 committed by GitHub
parent ffd71b5337
commit 5aac8bb7e4
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -2055,19 +2055,7 @@ static u32 LoadDynamicFollowerPalette(u32 species, bool32 shiny, bool32 female)
spritePalette.data = gSpeciesInfo[species].overworldPalette;
}
// Check if pal data must be decompressed
if (IsLZ77Data(spritePalette.data, PLTT_SIZE_4BPP, PLTT_SIZE_4BPP))
{
struct SpritePalette compSpritePalette;
compSpritePalette.data = (const void *) spritePalette.data;
compSpritePalette.tag = spritePalette.tag;
paletteNum = LoadSpritePalette(&compSpritePalette);
}
else
{
paletteNum = LoadSpritePalette(&spritePalette);
}
paletteNum = LoadSpritePalette(&spritePalette);
}
else
#endif //OW_POKEMON_OBJECT_EVENTS == TRUE && OW_PKMN_OBJECTS_SHARE_PALETTES == FALSE