Added support for semi-transparent unit type shadows

This commit is contained in:
Andrettin 2015-11-28 23:32:30 +01:00
parent a0f9926091
commit 142368e9ce

View file

@ -987,7 +987,9 @@ void LoadUnitTypeSprite(CUnitType &type)
if (type.Flip) {
type.ShadowSprite->Flip();
}
type.ShadowSprite->MakeShadow();
if (type.ShadowSprite->Surface->format->BytesPerPixel == 1) {
type.ShadowSprite->MakeShadow();
}
}
if (type.BoolFlag[HARVESTER_INDEX].value) {