From 3af93ab661252968c1fef2d5ec151f932b3481e1 Mon Sep 17 00:00:00 2001
From: "M. Kristall" <mkpdev@gmail.com>
Date: Tue, 25 Jan 2011 03:51:44 +0000
Subject: * Prevent spawn is NULL by ignoring commands from connecting clients
 (Lakitu7)   Code in tremded already does this, but that is expected to be
 changed in the   future

---
 src/game/g_cmds.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/game/g_cmds.c b/src/game/g_cmds.c
index 449dc8d7..57e52a3b 100644
--- a/src/game/g_cmds.c
+++ b/src/game/g_cmds.c
@@ -3051,7 +3051,7 @@ void ClientCommand( int clientNum )
   commands_t *command;
 
   ent = g_entities + clientNum;
-  if( !ent->client )
+  if( !ent->client || ent->client->pers.connected != CON_CONNECTED )
     return;   // not fully in game yet
 
   trap_Argv( 0, cmd, sizeof( cmd ) );
-- 
cgit