From d9beeaa8b4a71d1ac63c068130f06e72f11d3227 Mon Sep 17 00:00:00 2001 From: furo Date: Sat, 28 Oct 2023 15:27:16 +0200 Subject: [PATCH] Align kill messages properly in demos --- src/game/client/components/killmessages.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/game/client/components/killmessages.cpp b/src/game/client/components/killmessages.cpp index ee38a2cc4..82ec93a53 100644 --- a/src/game/client/components/killmessages.cpp +++ b/src/game/client/components/killmessages.cpp @@ -282,7 +282,7 @@ void CKillMessages::OnRender() Graphics()->SetColor(1.f, 1.f, 1.f, 1.f); float StartX = Width * 1.5f - 10.0f; - float y = 30.0f + 100.0f * ((g_Config.m_ClShowfps ? 1 : 0) + g_Config.m_ClShowpred); + float y = 30.0f + 100.0f * ((g_Config.m_ClShowfps ? 1 : 0) + (g_Config.m_ClShowpred && Client()->State() != IClient::STATE_DEMOPLAYBACK)); for(int i = 1; i <= MAX_KILLMSGS; i++) {