mirror of
https://github.com/ddnet/ddnet.git
synced 2024-11-10 18:18:18 +00:00
added vital flag for mapdata (includes fast download)
This commit is contained in:
parent
336e916548
commit
6affc4e1ef
|
@ -1024,7 +1024,7 @@ void CServer::ProcessClientPacket(CNetChunk *pPacket)
|
||||||
Msg.AddInt(Chunk);
|
Msg.AddInt(Chunk);
|
||||||
Msg.AddInt(ChunkSize);
|
Msg.AddInt(ChunkSize);
|
||||||
Msg.AddRaw(&m_pCurrentMapData[Offset], ChunkSize);
|
Msg.AddRaw(&m_pCurrentMapData[Offset], ChunkSize);
|
||||||
SendMsgEx(&Msg, MSGFLAG_FLUSH, ClientID, true);
|
SendMsgEx(&Msg, MSGFLAG_VITAL|MSGFLAG_FLUSH, ClientID, true);
|
||||||
|
|
||||||
if(g_Config.m_Debug)
|
if(g_Config.m_Debug)
|
||||||
{
|
{
|
||||||
|
@ -1445,7 +1445,7 @@ void CServer::PumpNetwork()
|
||||||
Msg.AddInt(Chunk);
|
Msg.AddInt(Chunk);
|
||||||
Msg.AddInt(ChunkSize);
|
Msg.AddInt(ChunkSize);
|
||||||
Msg.AddRaw(&m_pCurrentMapData[Offset], ChunkSize);
|
Msg.AddRaw(&m_pCurrentMapData[Offset], ChunkSize);
|
||||||
SendMsgEx(&Msg, MSGFLAG_FLUSH, i, true);
|
SendMsgEx(&Msg, MSGFLAG_VITAL|MSGFLAG_FLUSH, i, true);
|
||||||
|
|
||||||
if(g_Config.m_Debug)
|
if(g_Config.m_Debug)
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in a new issue