mirror of
https://github.com/ZDoom/gzdoom-gles.git
synced 2024-11-13 07:57:51 +00:00
- fixed alpha of weapon sprite.
This commit is contained in:
parent
c2a7a4bf30
commit
142368d958
1 changed files with 4 additions and 0 deletions
|
@ -307,6 +307,10 @@ bool HUDSprite::GetWeaponRenderStyle(DPSprite *psp, AActor *playermo, sector_t *
|
||||||
{
|
{
|
||||||
alpha = vis.Alpha;
|
alpha = vis.Alpha;
|
||||||
}
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
alpha = trans;
|
||||||
|
}
|
||||||
if (!RenderStyle.IsVisible(alpha)) return false; // if it isn't visible skip the rest.
|
if (!RenderStyle.IsVisible(alpha)) return false; // if it isn't visible skip the rest.
|
||||||
|
|
||||||
PalEntry ThingColor = (playermo->RenderStyle.Flags & STYLEF_ColorIsFixed) ? playermo->fillcolor : 0xffffff;
|
PalEntry ThingColor = (playermo->RenderStyle.Flags & STYLEF_ColorIsFixed) ? playermo->fillcolor : 0xffffff;
|
||||||
|
|
Loading…
Reference in a new issue