Added support for semi-transparent unit type shadows
This commit is contained in:
parent
a0f9926091
commit
142368e9ce
1 changed files with 3 additions and 1 deletions
|
@ -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) {
|
||||
|
|
Loading…
Reference in a new issue