From 142368d958a20cce1ac045768b39f90871ad1a9f Mon Sep 17 00:00:00 2001 From: Christoph Oelckers Date: Sat, 12 May 2018 18:45:12 +0200 Subject: [PATCH] - fixed alpha of weapon sprite. --- src/hwrenderer/scene/hw_weapon.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/hwrenderer/scene/hw_weapon.cpp b/src/hwrenderer/scene/hw_weapon.cpp index 6377c8827..781f3395a 100644 --- a/src/hwrenderer/scene/hw_weapon.cpp +++ b/src/hwrenderer/scene/hw_weapon.cpp @@ -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;