Cleaner Super Emerald drawing

This commit is contained in:
toaster 2023-06-26 12:56:01 +01:00
parent 1b03e7a75c
commit 8cd3305a34

View file

@ -1174,9 +1174,9 @@ void F_GameEvaluationDrawer(void)
UINT8 basegem = (evaluationtype == EVAL_SUPER) UINT8 basegem = (evaluationtype == EVAL_SUPER)
? 7 : 0; ? 7 : 0;
for (i = basegem; i < (basegem+7); ++i, eemeralds_cur += (360<<FRACBITS)/7) for (i = 0; i < 7; ++i, eemeralds_cur += (360<<FRACBITS)/7)
{ {
if (finaleemeralds & (1<<i)) if (finaleemeralds & (1<<(i+basegem)))
continue; continue;
fa = (FixedAngle(eemeralds_cur)>>ANGLETOFINESHIFT) & FINEMASK; fa = (FixedAngle(eemeralds_cur)>>ANGLETOFINESHIFT) & FINEMASK;
@ -1186,7 +1186,7 @@ void F_GameEvaluationDrawer(void)
FRACUNIT, FRACUNIT,
gemtrans, gemtrans,
empat, empat,
R_GetTranslationColormap(TC_DEFAULT, SKINCOLOR_CHAOSEMERALD1+(i-basegem), GTC_CACHE) R_GetTranslationColormap(TC_DEFAULT, SKINCOLOR_CHAOSEMERALD1+i, GTC_CACHE)
); );
} }
} }