mirror of
https://github.com/ddnet/ddnet.git
synced 2024-11-10 01:58:19 +00:00
Client intentionally sets AckedSnapshot to -1 sometimes
This commit is contained in:
parent
9c6e8c98e6
commit
7de808ae99
|
@ -1637,7 +1637,7 @@ void CServer::ProcessClientPacket(CNetChunk *pPacket)
|
||||||
}
|
}
|
||||||
|
|
||||||
// The LastAckedSnapshot should only increase
|
// The LastAckedSnapshot should only increase
|
||||||
if(LastAckedSnapshot > m_aClients[ClientId].m_LastAckedSnapshot)
|
if(LastAckedSnapshot > m_aClients[ClientId].m_LastAckedSnapshot || LastAckedSnapshot == -1)
|
||||||
m_aClients[ClientId].m_LastAckedSnapshot = LastAckedSnapshot;
|
m_aClients[ClientId].m_LastAckedSnapshot = LastAckedSnapshot;
|
||||||
|
|
||||||
if(m_aClients[ClientId].m_LastAckedSnapshot > 0)
|
if(m_aClients[ClientId].m_LastAckedSnapshot > 0)
|
||||||
|
|
Loading…
Reference in a new issue