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

Method LocalClientInput

neo/framework/async/AsyncServer.cpp:724–741  ·  view source on GitHub ↗

================== idAsyncServer::LocalClientInput ================== */

Source from the content-addressed store, hash-verified

722==================
723*/
724void idAsyncServer::LocalClientInput( void ) {
725 int index;
726
727 if ( localClientNum < 0 ) {
728 return;
729 }
730
731 index = gameFrame & ( MAX_USERCMD_BACKUP - 1 );
732 userCmds[index][localClientNum] = usercmdGen->GetDirectUsercmd();
733 userCmds[index][localClientNum].gameFrame = gameFrame;
734 userCmds[index][localClientNum].gameTime = gameTime;
735 if ( idAsyncNetwork::UsercmdInputChanged( userCmds[( gameFrame - 1 ) & ( MAX_USERCMD_BACKUP - 1 )][localClientNum], userCmds[index][localClientNum] ) ) {
736 clients[localClientNum].lastInputTime = serverTime;
737 }
738 clients[localClientNum].gameFrame = gameFrame;
739 clients[localClientNum].gameTime = gameTime;
740 clients[localClientNum].lastPacketTime = serverTime;
741}
742
743/*
744==================

Callers

nothing calls this directly

Calls 1

GetDirectUsercmdMethod · 0.80

Tested by

no test coverage detected