- fixed alpha of weapon sprite.

This commit is contained in:
Christoph Oelckers 2018-05-12 18:45:12 +02:00
parent c2a7a4bf30
commit 142368d958
1 changed files with 4 additions and 0 deletions

View File

@ -307,6 +307,10 @@ bool HUDSprite::GetWeaponRenderStyle(DPSprite *psp, AActor *playermo, sector_t *
{
alpha = vis.Alpha;
}
else
{
alpha = trans;
}
if (!RenderStyle.IsVisible(alpha)) return false; // if it isn't visible skip the rest.
PalEntry ThingColor = (playermo->RenderStyle.Flags & STYLEF_ColorIsFixed) ? playermo->fillcolor : 0xffffff;