mirror of
https://github.com/KartKrewDev/RingRacers.git
synced 2026-01-16 03:32:33 +00:00
M_DrawChallengeKeys: Grey out the last Chao Key on the stack if you're either out of them, or going to be out of them after the animation is over
This commit is contained in:
parent
6bf364545e
commit
bd7be2dd6f
1 changed files with 10 additions and 2 deletions
|
|
@ -5996,7 +5996,7 @@ static void M_DrawChallengeKeys(INT32 tilex, INT32 tiley)
|
|||
|
||||
if (specifickeyholdtime < CHAOHOLD_BEGIN)
|
||||
{
|
||||
if (specifickeyholdtime < 0)
|
||||
if (specifickeyholdtime <= 0)
|
||||
{
|
||||
// Nothing following will be relevant
|
||||
break;
|
||||
|
|
@ -6045,7 +6045,15 @@ static void M_DrawChallengeKeys(INT32 tilex, INT32 tiley)
|
|||
|
||||
// The final Chao Key on the stack
|
||||
{
|
||||
V_DrawFixedPatch(keyx, keyy, FRACUNIT, 0, key, NULL);
|
||||
UINT8 *lastkeycolormap = NULL;
|
||||
|
||||
if (gamedata->chaokeys <= keysbeingused)
|
||||
{
|
||||
// Greyed out if there's going to be none left
|
||||
lastkeycolormap = R_GetTranslationColormap(TC_BLINK, SKINCOLOR_BLACK, GTC_MENUCACHE);
|
||||
}
|
||||
|
||||
V_DrawFixedPatch(keyx, keyy, FRACUNIT, 0, key, lastkeycolormap);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue