CGameClient::Predict: Disable prediction if the game is paused

CGameClient::OnPredict() says "don't predict anything if we are paused"
and yet we predict different stuff based on CGameClient::Predict() result
which leads to flickering here and there (e.g. for projectiles and characters).
This commit is contained in:
Alexander Akulich 2023-08-26 20:13:19 +03:00
parent 63ed421e38
commit ec7d1f89e1

View file

@ -757,7 +757,7 @@ bool CGameClient::Predict() const
if(m_Snap.m_pGameInfoObj)
{
if(m_Snap.m_pGameInfoObj->m_GameStateFlags & GAMESTATEFLAG_GAMEOVER)
if(m_Snap.m_pGameInfoObj->m_GameStateFlags & (GAMESTATEFLAG_GAMEOVER | GAMESTATEFLAG_PAUSED))
{
return false;
}