Skip to content
This repository has been archived by the owner on Nov 30, 2024. It is now read-only.

Commit

Permalink
fixed Rainbow button
Browse files Browse the repository at this point in the history
  • Loading branch information
BlaiZephyr committed Dec 19, 2023
1 parent 9e1a202 commit 0c089e2
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 6 deletions.
2 changes: 1 addition & 1 deletion src/engine/shared/config_variables.h
Original file line number Diff line number Diff line change
Expand Up @@ -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")
2 changes: 1 addition & 1 deletion src/game/client/components/menus_ingame.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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);


Expand Down
7 changes: 3 additions & 4 deletions src/game/client/components/players.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}


Expand Down

0 comments on commit 0c089e2

Please sign in to comment.