From df758ba6c2f04447e028f3513d2f29c05ca8e016 Mon Sep 17 00:00:00 2001 From: Zachary Slater Date: Mon, 25 Oct 2010 06:43:55 +0000 Subject: [PATCH] Bugzilla #4629 commands sent to client when disconnecte --- code/server/sv_client.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/code/server/sv_client.c b/code/server/sv_client.c index 1195c88b..d6c355ad 100644 --- a/code/server/sv_client.c +++ b/code/server/sv_client.c @@ -1478,7 +1478,7 @@ void SV_ExecuteClientCommand( client_t *cl, const char *s, qboolean clientOK ) { if (clientOK) { // 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(); VM_Call( gvm, GAME_CLIENT_COMMAND, cl - svs.clients ); }