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:
@@ -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);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user