From 5cb990274591eddc69868a9ddece32540692be04 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Robert=20M=C3=BCller?= Date: Thu, 27 Apr 2023 20:46:58 +0200 Subject: [PATCH] Fix variable name `m_VictimTextWidth` --- src/game/client/components/killmessages.cpp | 8 ++++---- src/game/client/components/killmessages.h | 2 +- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/src/game/client/components/killmessages.cpp b/src/game/client/components/killmessages.cpp index 43c91b6c6..4f59f75a0 100644 --- a/src/game/client/components/killmessages.cpp +++ b/src/game/client/components/killmessages.cpp @@ -66,7 +66,7 @@ void CKillMessages::CreateKillmessageNamesIfNotCreated(CKillMsg &Kill) const float FontSize = 36.0f; if(Kill.m_VictimTextContainerIndex == -1 && Kill.m_aVictimName[0] != 0) { - Kill.m_VitctimTextWidth = TextRender()->TextWidth(FontSize, Kill.m_aVictimName, -1, -1.0f); + Kill.m_VictimTextWidth = TextRender()->TextWidth(FontSize, Kill.m_aVictimName, -1, -1.0f); CTextCursor Cursor; TextRender()->SetCursor(&Cursor, 0, 0, FontSize, TEXTFLAG_RENDER); @@ -150,7 +150,7 @@ void CKillMessages::OnMessage(int MsgType, void *pRawMsg) Kill.m_ModeSpecial = 0; Kill.m_Tick = Client()->GameTick(g_Config.m_ClDummy); - Kill.m_VitctimTextWidth = Kill.m_KillerTextWidth = 0.f; + Kill.m_VictimTextWidth = Kill.m_KillerTextWidth = 0.f; float Width = 400 * 3.0f * Graphics()->ScreenAspect(); float Height = 400 * 3.0f; @@ -217,7 +217,7 @@ void CKillMessages::OnMessage(int MsgType, void *pRawMsg) Kill.m_FlagCarrierBlue = m_pClient->m_Snap.m_pGameDataObj ? m_pClient->m_Snap.m_pGameDataObj->m_FlagCarrierBlue : -1; - Kill.m_VitctimTextWidth = Kill.m_KillerTextWidth = 0.f; + Kill.m_VictimTextWidth = Kill.m_KillerTextWidth = 0.f; float Width = 400 * 3.0f * Graphics()->ScreenAspect(); float Height = 400 * 3.0f; @@ -272,7 +272,7 @@ void CKillMessages::OnRender() ColorRGBA TOutlineColor(0.f, 0.f, 0.f, 0.3f); // render victim name - x -= m_aKillmsgs[r].m_VitctimTextWidth; + x -= m_aKillmsgs[r].m_VictimTextWidth; if(m_aKillmsgs[r].m_VictimID >= 0 && g_Config.m_ClChatTeamColors && m_aKillmsgs[r].m_VictimDDTeam) { TColor = color_cast(ColorHSLA(m_aKillmsgs[r].m_VictimDDTeam / 64.0f, 1.0f, 0.75f)); diff --git a/src/game/client/components/killmessages.h b/src/game/client/components/killmessages.h index 435a08d25..ae9d91509 100644 --- a/src/game/client/components/killmessages.h +++ b/src/game/client/components/killmessages.h @@ -30,7 +30,7 @@ public: int m_VictimDDTeam; char m_aVictimName[64]; int m_VictimTextContainerIndex; - float m_VitctimTextWidth; + float m_VictimTextWidth; CTeeRenderInfo m_VictimRenderInfo[MAX_KILLMSG_TEAM_MEMBERS]; int m_KillerID; int m_KillerTeam;