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

Method InitGame

neo/framework/async/AsyncClient.cpp:717–729  ·  view source on GitHub ↗

================== idAsyncClient::InitGame ================== */

Source from the content-addressed store, hash-verified

715==================
716*/
717void idAsyncClient::InitGame( int serverGameInitId, int serverGameFrame, int serverGameTime, const idDict &serverSI ) {
718 gameInitId = serverGameInitId;
719 gameFrame = snapshotGameFrame = serverGameFrame;
720 gameTime = snapshotGameTime = serverGameTime;
721 gameTimeResidual = 0;
722 memset( userCmds, 0, sizeof( userCmds ) );
723
724 for ( int i = 0; i < MAX_ASYNC_CLIENTS; i++ ) {
725 sessLocal.mapSpawnData.userInfo[ i ].Clear();
726 }
727
728 sessLocal.mapSpawnData.serverInfo = serverSI;
729}
730
731/*
732==================

Callers

nothing calls this directly

Calls 1

ClearMethod · 0.45

Tested by

no test coverage detected