From 8aa8c4ee011ced4bb6f22d2d1e3edf1c7900f7a0 Mon Sep 17 00:00:00 2001 From: KebsCS Date: Sun, 15 Sep 2024 02:32:58 +0200 Subject: [PATCH] Fix clan nameplate alignment --- src/game/client/components/nameplates.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/game/client/components/nameplates.cpp b/src/game/client/components/nameplates.cpp index b5ec8a65d..f477761ef 100644 --- a/src/game/client/components/nameplates.cpp +++ b/src/game/client/components/nameplates.cpp @@ -172,9 +172,11 @@ void CNamePlates::RenderNameplate(vec2 Position, const CNetObj_PlayerInfo *pPlay if(g_Config.m_ClNameplatesClan) { - YOffset -= FontSizeClan; if(NamePlate.m_ClanTextContainerIndex.Valid()) + { + YOffset -= FontSizeClan; TextRender()->RenderTextContainer(NamePlate.m_ClanTextContainerIndex, TColor, TOutlineColor, Position.x - TextRender()->GetBoundingBoxTextContainer(NamePlate.m_ClanTextContainerIndex).m_W / 2.0f, YOffset); + } } if(g_Config.m_ClNameplatesFriendMark && ClientData.m_Friend)