From f091549a0119e0777dab5008d502155668e0637b Mon Sep 17 00:00:00 2001 From: Simon McVittie Date: Thu, 11 Nov 2010 22:15:42 +0000 Subject: [PATCH] Pass client commands to the game VM in PRIMED as well as ACTIVE state In single-player Team Arena, the player joins a team before they're ACTIVE. Bug: http://bugzilla.icculus.org/show_bug.cgi?id=4629 --- code/server/sv_client.c | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/code/server/sv_client.c b/code/server/sv_client.c index d6c355a..130cb62 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 && cl->state == CS_ACTIVE) { + if (!u->name && sv.state == SS_GAME && (cl->state == CS_ACTIVE || cl->state == CS_PRIMED)) { Cmd_Args_Sanitize(); VM_Call( gvm, GAME_CLIENT_COMMAND, cl - svs.clients ); } -- 1.7.2.3