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

Method InitLocalClient

neo/framework/async/AsyncServer.cpp:696–706  ·  view source on GitHub ↗

================== idAsyncServer::InitLocalClient ================== */

Source from the content-addressed store, hash-verified

694==================
695*/
696void idAsyncServer::InitLocalClient( int clientNum ) {
697 netadr_t badAddress;
698
699 localClientNum = clientNum;
700 InitClient( clientNum, 0, 0 );
701 memset( &badAddress, 0, sizeof( badAddress ) );
702 badAddress.type = NA_BAD;
703 clients[clientNum].channel.Init( badAddress, serverId );
704 clients[clientNum].clientState = SCS_INGAME;
705 sessLocal.mapSpawnData.userInfo[clientNum] = *cvarSystem->MoveCVarsToDict( CVAR_USERINFO );
706}
707
708/*
709==================

Callers

nothing calls this directly

Calls 2

MoveCVarsToDictMethod · 0.80
InitMethod · 0.45

Tested by

no test coverage detected