mirror of
https://github.com/KartKrewDev/RingRacers.git
synced 2026-04-27 04:21:47 +00:00
Only lookup skincolor in hud for valid skin ids
This commit is contained in:
parent
7f895c9a7f
commit
e3daa1bbef
1 changed files with 2 additions and 2 deletions
|
|
@ -7999,8 +7999,6 @@ void K_drawKartHUD(void)
|
||||||
|
|
||||||
split = std::abs(split);
|
split = std::abs(split);
|
||||||
|
|
||||||
UINT8 *skincolor = R_GetTranslationColormap(skin, static_cast<skincolornum_t>(color), GTC_CACHE);
|
|
||||||
|
|
||||||
UINT8 textcolor = SKINCOLOR_WHITE;
|
UINT8 textcolor = SKINCOLOR_WHITE;
|
||||||
switch (ahead)
|
switch (ahead)
|
||||||
{
|
{
|
||||||
|
|
@ -8026,6 +8024,8 @@ void K_drawKartHUD(void)
|
||||||
|
|
||||||
if (skin != -1)
|
if (skin != -1)
|
||||||
{
|
{
|
||||||
|
UINT8 *skincolor = R_GetTranslationColormap(skin, static_cast<skincolornum_t>(color), GTC_CACHE);
|
||||||
|
|
||||||
// vibes offset
|
// vibes offset
|
||||||
row.x(-35).colormap(skincolor).patch(R_CanShowSkinInDemo(skin) ? faceprefix[skin][FACE_MINIMAP] : kp_unknownminimap);
|
row.x(-35).colormap(skincolor).patch(R_CanShowSkinInDemo(skin) ? faceprefix[skin][FACE_MINIMAP] : kp_unknownminimap);
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue