Fancy :D
This commit is contained in:
1 parent
37d28464ea
commit
ada779a97d
1 file changed
+11
-1
+11
-1
@@ -8306,6 +8306,16 @@ static void K_drawKartItem(void)
|
||||
|
||||
V_DrawMappedPatch(fx, fy, V_HUDTRANS|fflags, localbg, cv_colorizeditembox.value ? colormap : NULL);
|
||||
|
||||
fixed_t rfy = fy<<FRACBITS;
|
||||
|
||||
if (stplyr->kartstuff[k_itemroulette])
|
||||
{
|
||||
fixed_t frac = R_UsingFrameInterpolation() ? (rendertimefrac & FRACMASK) : 0;
|
||||
UINT8 fancystep = (offset ? 6 : 10);
|
||||
fixed_t fancyoffset = (stplyr->kartstuff[k_itemroulette] % 3)-1;
|
||||
rfy += (fancystep * fancyoffset * FRACUNIT) + FixedMul(fancystep*FRACUNIT, frac) - fancystep/2*FRACUNIT;
|
||||
}
|
||||
|
||||
// Then, the numbers:
|
||||
if (stplyr->kartstuff[k_itemamount] >= numberdisplaymin && !stplyr->kartstuff[k_itemroulette])
|
||||
{
|
||||
@@ -8324,7 +8334,7 @@ static void K_drawKartItem(void)
|
||||
}
|
||||
}
|
||||
else
|
||||
V_DrawFixedPatch(fx<<FRACBITS, fy<<FRACBITS, FRACUNIT, V_HUDTRANS|fflags, localpatch, colmap);
|
||||
V_DrawFixedPatch(fx<<FRACBITS, rfy, FRACUNIT, V_HUDTRANS|fflags, localpatch, colmap);
|
||||
|
||||
// Extensible meter, currently only used for rocket sneaker...
|
||||
if (itembar && hudtrans)
|
||||
|
||||
Reference in new issue
Block a user