From 9cc3850c3f9cb0f765b62f0b6445f7860da1addc Mon Sep 17 00:00:00 2001 From: Eidolon Date: Sun, 5 Nov 2023 12:23:05 -0600 Subject: [PATCH] Use M_GetCvPlayerColor for pad LED color --- src/g_input.c | 10 ++-------- 1 file changed, 2 insertions(+), 8 deletions(-) diff --git a/src/g_input.c b/src/g_input.c index 86ceb1d61..9a3e88065 100644 --- a/src/g_input.c +++ b/src/g_input.c @@ -15,6 +15,7 @@ #include "doomstat.h" #include "g_input.h" #include "keys.h" +#include "k_menu.h" #include "hu_stuff.h" // need HUFONT start & end #include "d_net.h" #include "console.h" @@ -219,14 +220,7 @@ void G_SetPlayerGamepadIndicatorToPlayerColor(INT32 player) return; } - skincolor = cv_playercolor[player].value; - if (skincolor == SKINCOLOR_NONE) - { - INT32 skin = cv_skin[player].value; - if (skin == -1) - skin = 0; - skincolor = skins[skin].prefcolor; - } + skincolor = M_GetCvPlayerColor(player); byte_color = V_GetColor(skincolors[skincolor].ramp[8]).s;