From 0838fd9d0461fd3061b2c085d41c2c02368be629 Mon Sep 17 00:00:00 2001 From: dobrykafe <121701317+dobrykafe@users.noreply.github.com> Date: Sat, 7 Oct 2023 15:52:36 +0200 Subject: [PATCH] fix requested changes --- src/game/client/components/menus_browser.cpp | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) diff --git a/src/game/client/components/menus_browser.cpp b/src/game/client/components/menus_browser.cpp index 26f0a5353..af596173f 100644 --- a/src/game/client/components/menus_browser.cpp +++ b/src/game/client/components/menus_browser.cpp @@ -1086,17 +1086,21 @@ void CMenus::RenderServerbrowserInfoScoreboard(CUIRect View, const CServerInfo * Name = Item.m_Rect; ColorRGBA Color; - const float alpha = (i % 2 + 1) * 0.05f; + const float Alpha = (i % 2 + 1) * 0.05f; switch(CurrentClient.m_FriendState) { case IFriends::FRIEND_NO: - Color = ColorRGBA(1.0f, 1.0f, 1.0f, alpha); + Color = ColorRGBA(1.0f, 1.0f, 1.0f, Alpha); break; case IFriends::FRIEND_PLAYER: - Color = ColorRGBA(0.5f, 1.0f, 0.5f, 0.15f + alpha); + Color = ColorRGBA(0.5f, 1.0f, 0.5f, 0.15f + Alpha); break; case IFriends::FRIEND_CLAN: - Color = ColorRGBA(0.4f, 0.4f, 1.0f, 0.15f + alpha); + Color = ColorRGBA(0.4f, 0.4f, 1.0f, 0.15f + Alpha); + break; + default: + dbg_assert(false, "Invalid friend state"); + dbg_break(); break; }