add the fancy hudtrans flags

This commit is contained in:
Alug committed 2025-01-17 14:18:01 +01:00
1 parent de64eb6f8d
commit ba5e15d29b
1 file changed
+7 -1
+7 -1
View File
@@ -8395,12 +8395,18 @@ static void K_drawKartItem(void)
V_DrawMappedPatch(fx, fy, V_HUDTRANS|fflags, localbg, cv_colorizeditembox.value ? colormap : NULL);
fixed_t rfy = fy<<FRACBITS;
INT32 fancyflags = V_HUDTRANS|fflags;
if (stplyr->kartstuff[k_itemroulette] && !stplyr->deadtimer)
{
fixed_t frac = R_UsingFrameInterpolation() ? (rendertimefrac & FRACMASK) : 0;
UINT8 fancystep = (offset ? 6 : 10);
fixed_t fancyoffset = (stplyr->kartstuff[k_itemroulette] % 3)-1;
if (fancyoffset != 0)
{
fancyflags &= ~V_HUDTRANS;
fancyflags |=V_HUDTRANSHALF;
}
rfy += (fancystep * fancyoffset * FRACUNIT) + FixedMul(fancystep*FRACUNIT, frac) - fancystep/2*FRACUNIT;
}
@@ -8422,7 +8428,7 @@ static void K_drawKartItem(void)
}
}
else
V_DrawFixedPatch(fx<<FRACBITS, rfy, FRACUNIT, V_HUDTRANS|fflags, localpatch, colmap);
V_DrawFixedPatch(fx<<FRACBITS, rfy, FRACUNIT, fancyflags, localpatch, colmap);
// Extensible meter, currently only used for rocket sneaker...
if (itembar && hudtrans)