================== idAsyncClient::SendUserInfoToServer ================== */
| 579 | ================== |
| 580 | */ |
| 581 | void idAsyncClient::SendUserInfoToServer( void ) { |
| 582 | idBitMsg msg; |
| 583 | byte msgBuf[MAX_MESSAGE_SIZE]; |
| 584 | idDict info; |
| 585 | |
| 586 | if ( clientState < CS_CONNECTED ) { |
| 587 | return; |
| 588 | } |
| 589 | |
| 590 | info = *cvarSystem->MoveCVarsToDict( CVAR_USERINFO ); |
| 591 | |
| 592 | // send reliable client info to server |
| 593 | msg.Init( msgBuf, sizeof( msgBuf ) ); |
| 594 | msg.WriteByte( CLIENT_RELIABLE_MESSAGE_CLIENTINFO ); |
| 595 | msg.WriteDeltaDict( info, &sessLocal.mapSpawnData.userInfo[ clientNum ] ); |
| 596 | |
| 597 | if ( !channel.SendReliableMessage( msg ) ) { |
| 598 | common->Error( "client->server reliable messages overflow\n" ); |
| 599 | } |
| 600 | |
| 601 | sessLocal.mapSpawnData.userInfo[clientNum] = info; |
| 602 | } |
| 603 | |
| 604 | /* |
| 605 | ================== |
nothing calls this directly
no test coverage detected