use renderfracs in fancyroulette
also default fancy roulette speed to 3 ticks per cycle
This commit is contained in:
parent
c33ea27cb4
commit
7cfdf38cb5
2 changed files with 2 additions and 2 deletions
|
|
@ -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;
|
||||
|
|
|
|||
|
|
@ -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)
|
||||
{
|
||||
|
|
|
|||
Loading…
Reference in a new issue