MCPcopy Create free account
hub / github.com/dhewm/dhewm3 / InitAsyncNetwork

Method InitAsyncNetwork

neo/d3xp/Game_network.cpp:68–89  ·  view source on GitHub ↗

================ idGameLocal::InitAsyncNetwork ================ */

Source from the content-addressed store, hash-verified

66================
67*/
68void idGameLocal::InitAsyncNetwork( void ) {
69 int i, type;
70
71 for ( i = 0; i < MAX_CLIENTS; i++ ) {
72 for ( type = 0; type < declManager->GetNumDeclTypes(); type++ ) {
73 clientDeclRemap[i][type].Clear();
74 }
75 }
76
77 memset( clientEntityStates, 0, sizeof( clientEntityStates ) );
78 memset( clientPVS, 0, sizeof( clientPVS ) );
79 memset( clientSnapshots, 0, sizeof( clientSnapshots ) );
80
81 eventQueue.Init();
82 savedEventQueue.Init();
83
84 entityDefBits = -( idMath::BitsForInteger( declManager->GetNumDecls( DECL_ENTITYDEF ) ) + 1 );
85 localClientNum = 0; // on a listen server SetLocalUser will set this right
86 realClientTime = 0;
87 isNewFrame = true;
88 clientSmoothing = net_clientSmoothing.GetFloat();
89}
90
91/*
92================

Callers

nothing calls this directly

Calls 5

GetNumDeclTypesMethod · 0.80
GetNumDeclsMethod · 0.80
ClearMethod · 0.45
InitMethod · 0.45
GetFloatMethod · 0.45

Tested by

no test coverage detected