mirror of
https://github.com/ddnet/ddnet.git
synced 2024-11-10 01:58:19 +00:00
cleanup
This commit is contained in:
parent
795e68ec2b
commit
34531c0696
|
@ -1768,8 +1768,7 @@ void CClient::ProcessServerPacket(CNetChunk *pPacket)
|
|||
m_CurrentRecvTick[g_Config.m_ClDummy] = GameTick;
|
||||
}
|
||||
|
||||
// TODO: clean this up abit
|
||||
mem_copy((char*)m_aSnapshotIncomingData + Part*MAX_SNAPSHOT_PACKSIZE, pData, PartSize);
|
||||
mem_copy((char*)m_aSnapshotIncomingData + Part*MAX_SNAPSHOT_PACKSIZE, pData, clamp(PartSize, 0, (int)sizeof(m_aSnapshotIncomingData) - Part*MAX_SNAPSHOT_PACKSIZE));
|
||||
m_SnapshotParts |= 1<<Part;
|
||||
|
||||
if(m_SnapshotParts == (unsigned)((1<<NumParts)-1))
|
||||
|
@ -2024,8 +2023,7 @@ void CClient::ProcessServerPacketDummy(CNetChunk *pPacket)
|
|||
m_CurrentRecvTick[!g_Config.m_ClDummy] = GameTick;
|
||||
}
|
||||
|
||||
// TODO: clean this up abit
|
||||
mem_copy((char*)m_aSnapshotIncomingData + Part*MAX_SNAPSHOT_PACKSIZE, pData, PartSize);
|
||||
mem_copy((char*)m_aSnapshotIncomingData + Part*MAX_SNAPSHOT_PACKSIZE, pData, clamp(PartSize, 0, (int)sizeof(m_aSnapshotIncomingData) - Part*MAX_SNAPSHOT_PACKSIZE));
|
||||
m_SnapshotParts |= 1<<Part;
|
||||
|
||||
if(m_SnapshotParts == (unsigned)((1<<NumParts)-1))
|
||||
|
|
Loading…
Reference in a new issue