From 13d48f982bd98dcf91711a444f8132f0ca4e334f Mon Sep 17 00:00:00 2001 From: Alug Date: Thu, 29 Feb 2024 00:27:37 +0100 Subject: [PATCH] just make it like this --- src/hu_stuff.c | 44 ++++++++++++++++++++++++-------------------- 1 file changed, 24 insertions(+), 20 deletions(-) diff --git a/src/hu_stuff.c b/src/hu_stuff.c index 18c8f06b6..cc3278812 100644 --- a/src/hu_stuff.c +++ b/src/hu_stuff.c @@ -2563,28 +2563,31 @@ static inline void HU_DrawSpectatorTicker(void) V_DrawString(templength - duptweak, height, V_TRANSLUCENT|V_ALLOWLOWERCASE, current); } - - if (players[i].mo && cv_showspecstuff.value) - { - player_t *p; - p = &players[i]; - - if (netgame && i != serverplayer) - HU_drawPing((templength - duptweak)+8, height-20, playerpingtable[i], V_TRANSLUCENT); - - if (players[i].mo->color) - { - const UINT8 *colormap; - if (players[i].mo->colorized) - colormap = R_GetTranslationColormap(TC_RAINBOW, players[i].mo->color, GTC_CACHE); - else - colormap = R_GetTranslationColormap(players[i].skin, players[i].mo->color, GTC_CACHE); - if (cv_highresportrait.value) - V_DrawSmallMappedPatch((templength - duptweak), height+10, V_TRANSLUCENT, R_GetSkinFaceWant(p), colormap); - else - V_DrawMappedPatch((templength - duptweak), height+10, V_TRANSLUCENT, R_GetSkinFaceRank(p), colormap); + if (cv_showspecstuff.value) + { + if (players[i].mo) + { + player_t *p; + p = &players[i]; + + if (players[i].mo->color) + { + const UINT8 *colormap; + if (players[i].mo->colorized) + colormap = R_GetTranslationColormap(TC_RAINBOW, players[i].mo->color, GTC_CACHE); + else + colormap = R_GetTranslationColormap(players[i].skin, players[i].mo->color, GTC_CACHE); + + if (cv_highresportrait.value) + V_DrawSmallMappedPatch((templength - duptweak), height+10, V_TRANSLUCENT, R_GetSkinFaceWant(p), colormap); + else + V_DrawMappedPatch((templength - duptweak), height+10, V_TRANSLUCENT, R_GetSkinFaceRank(p), colormap); + } } + + if (netgame && i != serverplayer) + HU_drawPing((templength - duptweak)+8, height-20, playerpingtable[i], V_TRANSLUCENT); } if ((length += len) >= dupadjust+8) @@ -2593,6 +2596,7 @@ static inline void HU_DrawSpectatorTicker(void) } } + // // HU_DrawRankings //