From 34d80e65c8c486803c2581e65495af1f6299f09d Mon Sep 17 00:00:00 2001 From: trml Date: Mon, 18 Jan 2021 23:55:13 +0100 Subject: [PATCH] Don't predict input from the dummy when it is paused --- src/game/client/gameclient.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/game/client/gameclient.h b/src/game/client/gameclient.h index cce0d3639..90b669dff 100644 --- a/src/game/client/gameclient.h +++ b/src/game/client/gameclient.h @@ -445,7 +445,7 @@ public: bool AntiPingWeapons() { return g_Config.m_ClAntiPing && g_Config.m_ClAntiPingWeapons && !m_Snap.m_SpecInfo.m_Active && Client()->State() != IClient::STATE_DEMOPLAYBACK; } bool AntiPingGunfire() { return AntiPingGrenade() && AntiPingWeapons() && g_Config.m_ClAntiPingGunfire; } bool Predict() { return g_Config.m_ClPredict && !(m_Snap.m_pGameInfoObj && m_Snap.m_pGameInfoObj->m_GameStateFlags & GAMESTATEFLAG_GAMEOVER) && !m_Snap.m_SpecInfo.m_Active && Client()->State() != IClient::STATE_DEMOPLAYBACK && m_Snap.m_pLocalCharacter; } - bool PredictDummy() { return g_Config.m_ClPredictDummy && Client()->DummyConnected() && m_Snap.m_LocalClientID >= 0 && m_PredictedDummyID >= 0; } + bool PredictDummy() { return g_Config.m_ClPredictDummy && Client()->DummyConnected() && m_Snap.m_LocalClientID >= 0 && m_PredictedDummyID >= 0 && !m_aClients[m_PredictedDummyID].m_Paused; } CGameWorld m_GameWorld; CGameWorld m_PredictedWorld;