================== idAsyncServer::LocalClientInput ================== */
| 722 | ================== |
| 723 | */ |
| 724 | void 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 | ================== |
nothing calls this directly
no test coverage detected