When drawing lives/stats use real player color
This commit is contained in:
parent
37f3784239
commit
9b460f407d
2 changed files with 6 additions and 2 deletions
|
|
@ -1661,6 +1661,8 @@ void D_SRB2Main(void)
|
|||
|
||||
M_InitPlayerSetupColors();
|
||||
|
||||
K_ReloadHUDColorCvar();
|
||||
|
||||
// Do it before P_InitMapData because PNG patch
|
||||
// conversion sometimes needs the palette
|
||||
V_ReloadPalette();
|
||||
|
|
|
|||
|
|
@ -2645,7 +2645,8 @@ static void K_drawKartStatsnLives(void)
|
|||
// Lives
|
||||
if (LUA_HudEnabled(hud_lives) && uselives)
|
||||
{
|
||||
UINT8 *colormap = R_GetTranslationColormap(stplyr->skin, K_GetHudColor(), GTC_CACHE);
|
||||
// We specify stplyr->skincolor since we want it to match the player and not the hud color.
|
||||
UINT8 *colormap = R_GetTranslationColormap(stplyr->skin, stplyr->skincolor, GTC_CACHE);
|
||||
patch_t *mmappatch = faceprefix[stplyr->skin][FACE_MINIMAP];
|
||||
|
||||
V_DrawMappedPatch(fx+21+mmappatch->leftoffset, fy-13+mmappatch->topoffset, V_HUDTRANS|splitflags, mmappatch, colormap);
|
||||
|
|
@ -2674,7 +2675,8 @@ static void K_drawKartStatsnLives(void)
|
|||
}
|
||||
}
|
||||
|
||||
UINT8 *colormap = R_GetTranslationColormap(stplyr->skin, K_GetHudColor(), GTC_CACHE);
|
||||
// We specify stplyr->skincolor since we want it to match the player and not the hud color.
|
||||
UINT8 *colormap = R_GetTranslationColormap(stplyr->skin, stplyr->skincolor, GTC_CACHE);
|
||||
patch_t *facerank = faceprefix[stplyr->skin][FACE_RANK];
|
||||
V_DrawMappedPatch(fx+59+offsetx+facerank->leftoffset, fy-16+offsety+facerank->topoffset, V_HUDTRANS|splitflags, facerank, colormap);
|
||||
if (stplyr->lives >= 0 && uselives)
|
||||
|
|
|
|||
Loading…
Reference in a new issue