Merge pull request #7261 from furo321/demo-show-pred

Don't show cl_showpred in demos
This commit is contained in:
Dennis Felsing 2023-09-27 10:31:36 +00:00 committed by GitHub
commit 5b3738dc17
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -524,7 +524,7 @@ void CHud::RenderTextInfo()
TextRender()->RenderTextContainer(m_FPSTextContainerIndex, TextRender()->DefaultTextColor(), TextRender()->DefaultTextOutlineColor());
}
}
if(g_Config.m_ClShowpred)
if(g_Config.m_ClShowpred && Client()->State() != IClient::STATE_DEMOPLAYBACK)
{
char aBuf[64];
str_from_int(Client()->GetPredictionTime(), aBuf);