=============== SV_GameSendServerCommand Sends a command string to a client =============== */
| 94 | =============== |
| 95 | */ |
| 96 | void SV_GameSendServerCommand( int clientNum, const char *fmt, ... ) { |
| 97 | char msg[8192]; |
| 98 | va_list argptr; |
| 99 | |
| 100 | va_start (argptr,fmt); |
| 101 | Q_vsnprintf (msg, sizeof(msg), fmt, argptr); |
| 102 | va_end (argptr); |
| 103 | |
| 104 | if ( clientNum == -1 ) { |
| 105 | SV_SendServerCommand( NULL, "%s", msg ); |
| 106 | } else { |
| 107 | if ( clientNum < 0 || clientNum >= 1 ) { |
| 108 | return; |
| 109 | } |
| 110 | SV_SendServerCommand( svs.clients + clientNum, "%s", msg ); |
| 111 | } |
| 112 | } |
| 113 | |
| 114 | |
| 115 | /* |
nothing calls this directly
no test coverage detected