MCPcopy Create free account
hub / github.com/ddnet/ddnet / Reset

Method Reset

src/engine/server/server.cpp:211–228  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

209}
210
211void CServer::CClient::Reset()
212{
213 // reset input
214 for(auto &Input : m_aInputs)
215 Input.m_GameTick = -1;
216 m_CurrentInput = 0;
217 mem_zero(&m_LastPreInput, sizeof(m_LastPreInput));
218 mem_zero(&m_LatestInput, sizeof(m_LatestInput));
219
220 m_Snapshots.PurgeAll();
221 m_LastAckedSnapshot = -1;
222 m_LastInputTick = -1;
223 m_SnapRate = CClient::SNAPRATE_INIT;
224 m_Score = -1;
225 m_NextMapChunk = 0;
226 m_Flags = 0;
227 m_RedirectDropTime = 0;
228}
229
230CServer::CServer()
231{

Callers 11

OnPacketMethod · 0.45
RepackMsgFunction · 0.45
ClientRejoinCallbackMethod · 0.45
NewClientCallbackMethod · 0.45
ProcessClientPacketMethod · 0.45
CacheServerInfoMethod · 0.45
CacheServerInfoSixupMethod · 0.45
SendServerInfoMethod · 0.45
PumpNetworkMethod · 0.45
RunMethod · 0.45

Calls 2

mem_zeroFunction · 0.85
PurgeAllMethod · 0.80

Tested by

no test coverage detected