mirror of
https://github.com/KartKrewDev/RingRacers.git
synced 2026-04-27 20:41:46 +00:00
GP Cup Select drawer: Use the Super Emerald graphic for cups with emerald numbers higher than 7
This commit is contained in:
parent
49f7b75454
commit
0c4ea2f51a
1 changed files with 13 additions and 1 deletions
|
|
@ -2242,9 +2242,21 @@ void M_DrawCupSelect(void)
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
UINT16 col = SKINCOLOR_CHAOSEMERALD1 + (templevelsearch.cup->emeraldnum-1) % 7;
|
UINT16 col = SKINCOLOR_CHAOSEMERALD1 + (templevelsearch.cup->emeraldnum-1) % 7;
|
||||||
|
patch_t *em;
|
||||||
|
|
||||||
colormap = R_GetTranslationColormap(TC_DEFAULT, col, GTC_MENUCACHE);
|
colormap = R_GetTranslationColormap(TC_DEFAULT, col, GTC_MENUCACHE);
|
||||||
|
|
||||||
V_DrawFixedPatch((x + 26 - rankx)*FRACUNIT, (y + icony + 13)*FRACUNIT, FRACUNIT, 0, W_CachePatchName("K_EMERC", PU_CACHE), colormap);
|
if (templevelsearch.cup->emeraldnum > 7)
|
||||||
|
{
|
||||||
|
em = W_CachePatchName("K_SUPER1", PU_CACHE);
|
||||||
|
rankx += 2;
|
||||||
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
em = W_CachePatchName("K_EMERC", PU_CACHE);
|
||||||
|
}
|
||||||
|
|
||||||
|
V_DrawFixedPatch((x + 26 - rankx)*FRACUNIT, (y + icony + 13)*FRACUNIT, FRACUNIT, 0, em, colormap);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue