================== SV_ExecuteClientCommand ================== */
| 330 | ================== |
| 331 | */ |
| 332 | void SV_ExecuteClientCommand( client_t *cl, const char *s ) { |
| 333 | ucmd_t *u; |
| 334 | |
| 335 | Cmd_TokenizeString( s ); |
| 336 | |
| 337 | // see if it is a server level command |
| 338 | for (u=ucmds ; u->name ; u++) { |
| 339 | if (!strcmp (Cmd_Argv(0), u->name) ) { |
| 340 | u->func( cl ); |
| 341 | break; |
| 342 | } |
| 343 | } |
| 344 | |
| 345 | // pass unknown strings to the game |
| 346 | if (!u->name && sv.state == SS_GAME) { |
| 347 | ge->ClientCommand( cl - svs.clients ); |
| 348 | } |
| 349 | } |
| 350 | |
| 351 | #define MAX_STRINGCMDS 8 |
| 352 |
no test coverage detected