From 0c089e25acdbcabc44b4ea1072c793281fba5569 Mon Sep 17 00:00:00 2001 From: BlaiZephyr Date: Tue, 19 Dec 2023 13:59:33 +0100 Subject: [PATCH] fixed Rainbow button --- src/engine/shared/config_variables.h | 2 +- src/game/client/components/menus_ingame.cpp | 2 +- src/game/client/components/players.cpp | 7 +++---- 3 files changed, 5 insertions(+), 6 deletions(-) diff --git a/src/engine/shared/config_variables.h b/src/engine/shared/config_variables.h index b270d2689..276d99104 100644 --- a/src/engine/shared/config_variables.h +++ b/src/engine/shared/config_variables.h @@ -745,4 +745,4 @@ MACRO_CONFIG_INT(ClRainbowSpeed, sc_rainbow_speed, 20, 0, 100, CFGFLAG_CLIENT | MACRO_CONFIG_INT(ClRainbowEveryone, sc_rainbow_all, 0, 0, 1, CFGFLAG_CLIENT | CFGFLAG_SAVE, "Rainbow all") //tee skin name -MACRO_CONFIG_INT(ClShowSkinName, sc_show_skin_name, 0, 0, 1, CFGFLAG_CLIENT | CFGFLAG_SAVE, "Display name skin in nameplates") +MACRO_CONFIG_INT(ClShowSkinName, cl_nameplates_skin_name, 0, 0, 1, CFGFLAG_CLIENT | CFGFLAG_SAVE, "Display name skin in nameplates") diff --git a/src/game/client/components/menus_ingame.cpp b/src/game/client/components/menus_ingame.cpp index e439c6744..9e3c752df 100644 --- a/src/game/client/components/menus_ingame.cpp +++ b/src/game/client/components/menus_ingame.cpp @@ -979,7 +979,7 @@ void CMenus::RenderStats(CUIRect MainView) - str_format(Welcome, sizeof(Welcome), " Current points: %s", s_StatsPlayer.Points); + str_format(Welcome, sizeof(Welcome), " Current points: %d", s_StatsPlayer.Points); UI()->DoLabel(&CP, Welcome, 40.0f, TEXTALIGN_ML); diff --git a/src/game/client/components/players.cpp b/src/game/client/components/players.cpp index 2846c79d6..9bfc607d0 100644 --- a/src/game/client/components/players.cpp +++ b/src/game/client/components/players.cpp @@ -477,17 +477,16 @@ void CPlayers::RenderPlayer( bool IsRainbowBody = g_Config.m_ClRainbow, IsRainbowFeet = g_Config.m_ClRainbow; - g_Config.m_ClRainbow = Local; - if(g_Config.m_ClRainbow == 1) + if(g_Config.m_ClRainbow == 1 && (m_pClient->m_Snap.m_LocalClientID == ClientID) == 1) { IsRainbowBody = true; IsRainbowFeet = true; } else { - IsRainbowBody = 0; - IsRainbowFeet = 0; + IsRainbowBody = false; + IsRainbowFeet = false; }