smol cleanup localskin ranking shit

This commit is contained in:
Alug committed 2025-01-12 17:25:42 +01:00
1 parent e320aff5dc
commit 26902b4565
2 files changed
+15 -26

No files matched your search

+5 -11
View File
@@ -8915,7 +8915,6 @@ void HU_DrawTabRankings(INT32 x, INT32 y, playersort_t *tab, INT32 scorelines, I
continue; //ignore them.
const boolean whiteplayer = _isHighlightedPlayer(&players[pnum]);
const INT32 philicol = (whiteplayer ? V_SkinColorToHighlightcolor(players[pnum].skincolor) : 0);
if (netgame // don't draw it offline
@@ -8931,21 +8930,16 @@ void HU_DrawTabRankings(INT32 x, INT32 y, playersort_t *tab, INT32 scorelines, I
if (players[pnum].mo->color)
{
colormap = R_GetTranslationColormap(players[pnum].skin, players[pnum].mo->color, GTC_CACHE);
if (players[pnum].mo->colorized)
colormap = R_GetTranslationColormap(TC_RAINBOW, players[pnum].mo->color, GTC_CACHE);
else
colormap = R_GetTranslationColormap(players[pnum].skin, players[pnum].mo->color, GTC_CACHE);
{
player_t *p;
p = &players[pnum];
if (cv_highresportrait.value)
V_DrawSmallMappedPatch(x, y-4, 0, R_GetSkinFaceWant(p), colormap);
else
V_DrawMappedPatch(x, y-4, 0, R_GetSkinFaceRank(p), colormap);
}
if (cv_highresportrait.value)
V_DrawSmallMappedPatch(x, y-4, 0, R_GetSkinFaceWant(&players[pnum]), colormap);
else
V_DrawMappedPatch(x, y-4, 0, R_GetSkinFaceRank(&players[pnum]), colormap);
/*if (G_BattleGametype() && players[pnum].kartstuff[k_bumper] > 0) -- not enough space for this
{
INT32 bumperx = x+19;
+10 -15
View File
@@ -406,24 +406,19 @@ static void Y_PlayerStandingsDrawer(y_data_t *standings, INT32 x, INT32 hilicol)
if (standings->color[i] != SKINCOLOR_NONE)
{
UINT8 *colormap = R_GetTranslationColormap(*standings->character[i], *standings->color[i], GTC_CACHE);
INT32 skinnum = (players[pnum].localskin ? (players[pnum].localskin - 1) : *standings->character[i]);
patch_t *faceprefix = NULL;
// i fucking hate this i fucking hate this i hate this so much
if (!players[pnum].skinlocal)
{
int skinIndex = (players[pnum].localskin ? (players[pnum].localskin - 1) : *standings->character[i]);
if (cv_highresportrait.value)
V_DrawSmallMappedPatch(x + 16, y - 4, 0, facewantprefix[skinIndex], colormap);
else
V_DrawMappedPatch(x + 16, y - 4, 0, facerankprefix[skinIndex], colormap);
}
faceprefix = (cv_highresportrait.value ? facewantprefix[skinnum] : facerankprefix[skinnum]);
else
{
if (cv_highresportrait.value)
V_DrawSmallMappedPatch(x + 16, y - 4, 0, localfacewantprefix[players[pnum].localskin - 1], colormap);
else
V_DrawMappedPatch(x + 16, y - 4, 0, localfacerankprefix[players[pnum].localskin - 1], colormap);
}
faceprefix = (cv_highresportrait.value ? localfacewantprefix[skinnum] : localfacerankprefix[skinnum]);
if (cv_highresportrait.value)
V_DrawSmallMappedPatch(x + 16, y - 4, 0, faceprefix, colormap);
else
V_DrawMappedPatch(x + 16, y - 4, 0, faceprefix, colormap);
}
if (pnum == whiteplayer)