1
0
mirror of https://github.com/vcmi/vcmi.git synced 2024-12-26 22:57:00 +02:00

Merge pull request #4613 from IvanSavenko/cyan_fix

Fix creatures with non-cyan background in battle when xbrz is not in use
This commit is contained in:
Ivan Savenko 2024-09-17 21:33:23 +03:00 committed by GitHub
commit 110def5a1e
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -415,6 +415,10 @@ void SDLImageIndexed::shiftPalette(uint32_t firstColorID, uint32_t colorsToMove,
void SDLImageIndexed::adjustPalette(const ColorFilter & shifter, uint32_t colorsToSkipMask) void SDLImageIndexed::adjustPalette(const ColorFilter & shifter, uint32_t colorsToSkipMask)
{ {
// If shadow is enabled, following colors must be skipped unconditionally
if (shadowEnabled)
colorsToSkipMask |= (1 << 0) + (1 << 1) + (1 << 4);
// Note: here we skip first colors in the palette that are predefined in H3 images // Note: here we skip first colors in the palette that are predefined in H3 images
for(int i = 0; i < currentPalette->ncolors; i++) for(int i = 0; i < currentPalette->ncolors; i++)
{ {