mirror of
https://github.com/ddnet/ddnet.git
synced 2024-09-20 01:24:18 +00:00
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:
parent
63ed421e38
commit
ec7d1f89e1
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue