================== SV_UpdateServerCommandsToClient (re)send all server commands the client hasn't acknowledged yet ================== */
| 202 | ================== |
| 203 | */ |
| 204 | static void SV_UpdateServerCommandsToClient( client_t *client, msg_t *msg ) { |
| 205 | int i; |
| 206 | |
| 207 | // write any unacknowledged serverCommands |
| 208 | for ( i = client->reliableAcknowledge + 1 ; i <= client->reliableSequence ; i++ ) { |
| 209 | MSG_WriteByte( msg, svc_serverCommand ); |
| 210 | MSG_WriteLong( msg, i ); |
| 211 | MSG_WriteString( msg, client->reliableCommands[ i & (MAX_RELIABLE_COMMANDS-1) ] ); |
| 212 | } |
| 213 | } |
| 214 | |
| 215 | /* |
| 216 | ============================================================================= |
no test coverage detected