use renderfracs in fancyroulette

also default fancy roulette speed to 3 ticks per cycle
This commit is contained in:
minenice55 2025-11-23 17:49:52 -05:00
parent c33ea27cb4
commit 7cfdf38cb5
2 changed files with 2 additions and 2 deletions

View file

@ -1421,7 +1421,7 @@ static void K_drawKartItem(void)
V_SetClipRect((fx + 8) << FRACBITS, (fy + 8) << FRACBITS, 34 << FRACBITS, 34 << FRACBITS, V_HUDTRANS|fflags);
for (int rouletteshift = -1; rouletteshift <= 2; rouletteshift++)
{
shiftprog = (FRACUNIT * -rouletteshift) + (FixedDiv(stplyr->itemroulette, animlength) % FRACUNIT);
shiftprog = (FRACUNIT * -rouletteshift) + (FixedDiv((stplyr->itemroulette<<FRACBITS)|R_GetTimeFrac(RTF_LEVEL), animlength<<FRACBITS) % FRACUNIT);
alpha = (FixedMul((abs(shiftprog) * 10), FixedDiv(hudtrans << FRACBITS, 10 << FRACBITS)) >> FRACBITS)+(10-hudtrans);
rfy = (fy<<FRACBITS) + shift*shiftprog;
if (0 > alpha) alpha = 0;

View file

@ -71,7 +71,7 @@ static CV_PossibleValue_t kartitemvariant_cons_t[] = {{0, "Legacy"}, {1, "Altern
#define MAXBATTLEPROBABILITY (REALMAXBATTLEPROB * BATTLEODDSMUL)
consvar_t cv_fancyroulette = CVAR_INIT ("fancyroulette", "Off", CV_SAVE, CV_OnOff, NULL);
consvar_t cv_fancyroulettespeed = CVAR_INIT ("fancyroulettespeed", "5", CV_SAVE, CV_Natural, NULL);
consvar_t cv_fancyroulettespeed = CVAR_INIT ("fancyroulettespeed", "3", CV_SAVE, CV_Natural, NULL);
void K_RegisterItem(kartitemtype_e itemtype)
{