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

Method EnterGame

src/engine/client/client.cpp:487–501  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

485}
486
487void CClient::EnterGame(int Conn)
488{
489 if(State() == IClient::STATE_DEMOPLAYBACK)
490 return;
491
492 m_aDidPostConnect[Conn] = false;
493
494 // now we will wait for two snapshots
495 // to finish the connection
496 SendEnterGame(Conn);
497 OnEnterGame(Conn);
498
499 ServerInfoRequest(); // fresh one for timeout protection
500 m_CurrentServerNextPingTime = time_get() + time_freq() / 2;
501}
502
503void CClient::OnPostConnect(int Conn)
504{

Callers 1

OnMessageMethod · 0.80

Calls 2

time_getFunction · 0.85
time_freqFunction · 0.85

Tested by

no test coverage detected