1
0
mirror of https://github.com/vcmi/vcmi.git synced 2025-11-23 22:37:55 +02:00

Fix corrupted pixels on town building animations in mods

This commit is contained in:
Ivan Savenko
2025-02-25 15:28:45 +00:00
parent e720d06e79
commit e4a719fb7e

View File

@@ -442,7 +442,8 @@ void CShowableAnim::blitImage(size_t frame, size_t group, Canvas & to)
if(img)
{
img->setAlpha(alpha);
img->setOverlayColor(Colors::TRANSPARENCY);
if (getModeForFlags(flags) == EImageBlitMode::WITH_SHADOW_AND_SELECTION)
img->setOverlayColor(Colors::TRANSPARENCY);
to.draw(img, pos.topLeft(), src);
}
}