From cc87d49c9b4c9b4fb32a9d2b796c09249278031d Mon Sep 17 00:00:00 2001 From: Jupeyy Date: Fri, 29 Oct 2021 00:11:21 +0200 Subject: [PATCH] Reset text color after kill messages are created --- src/game/client/components/killmessages.cpp | 1 + src/game/client/components/menus_settings.cpp | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/src/game/client/components/killmessages.cpp b/src/game/client/components/killmessages.cpp index 159fa155f..ea9ee499f 100644 --- a/src/game/client/components/killmessages.cpp +++ b/src/game/client/components/killmessages.cpp @@ -103,6 +103,7 @@ void CKillMessages::CreateKillmessageNamesIfNotCreated(CKillMsg &Kill) Kill.m_KillerTextContainerIndex = TextRender()->CreateTextContainer(&Cursor, Kill.m_aKillerName); } + TextRender()->TextColor(TextRender()->DefaultTextColor()); } void CKillMessages::OnMessage(int MsgType, void *pRawMsg) diff --git a/src/game/client/components/menus_settings.cpp b/src/game/client/components/menus_settings.cpp index 1ea129556..e5cadb182 100644 --- a/src/game/client/components/menus_settings.cpp +++ b/src/game/client/components/menus_settings.cpp @@ -2370,7 +2370,7 @@ void CMenus::RenderSettingsHUD(CUIRect MainView) TextRender()->TextEx(&Cursor, "*** Echo command executed", -1); TextRender()->SetCursorPosition(&Cursor, X, Y); - TextRender()->TextColor(1, 1, 1, 1); + TextRender()->TextColor(TextRender()->DefaultTextColor()); } }