commands sent to client when disconnecte
This commit is contained in:
Zachary Slater 2010-10-25 06:43:55 +00:00
parent a4327ef965
commit df758ba6c2

View file

@ -1478,7 +1478,7 @@ void SV_ExecuteClientCommand( client_t *cl, const char *s, qboolean clientOK ) {
if (clientOK) { if (clientOK) {
// pass unknown strings to the game // pass unknown strings to the game
if (!u->name && sv.state == SS_GAME) { if (!u->name && sv.state == SS_GAME && cl->state == CS_ACTIVE) {
Cmd_Args_Sanitize(); Cmd_Args_Sanitize();
VM_Call( gvm, GAME_CLIENT_COMMAND, cl - svs.clients ); VM_Call( gvm, GAME_CLIENT_COMMAND, cl - svs.clients );
} }