From 19b19262a43add932b099804ffd60c6b07a4635a Mon Sep 17 00:00:00 2001 From: dobrykafe Date: Mon, 15 Apr 2024 00:29:46 +0200 Subject: [PATCH] fix alignment of labels in friends list --- src/game/client/components/menus_browser.cpp | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/src/game/client/components/menus_browser.cpp b/src/game/client/components/menus_browser.cpp index 0b0647362..175b0ba85 100644 --- a/src/game/client/components/menus_browser.cpp +++ b/src/game/client/components/menus_browser.cpp @@ -1479,12 +1479,11 @@ void CMenus::RenderServerbrowserFriends(CUIRect View) Rect.HSplitTop(11.0f + 10.0f, &Rect, nullptr); // tee + CUIRect Skin; + Rect.VSplitLeft(Rect.h, &Skin, &Rect); + Rect.VSplitLeft(2.0f, nullptr, &Rect); if(Friend.Skin()[0] != '\0') { - CUIRect Skin; - Rect.VSplitLeft(Rect.h, &Skin, &Rect); - Rect.VSplitLeft(2.0f, nullptr, &Rect); - const CTeeRenderInfo TeeInfo = GetTeeRenderInfo(vec2(Skin.w, Skin.h), Friend.Skin(), Friend.CustomSkinColors(), Friend.CustomSkinColorBody(), Friend.CustomSkinColorFeet()); const CAnimState *pIdleState = CAnimState::GetIdle(); vec2 OffsetToMid;