diff options
author | M. Kristall <mkpdev@gmail.com> | 2011-01-25 03:51:44 +0000 |
---|---|---|
committer | Tim Angus <tim@ngus.net> | 2013-01-03 00:17:54 +0000 |
commit | 3af93ab661252968c1fef2d5ec151f932b3481e1 (patch) | |
tree | e58446950f4741f7f1ea9baae744d7d7ad5528a1 /src/game | |
parent | f96ae257eab6fae9b4b4f4409c58dbce6915ac35 (diff) |
* 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
Diffstat (limited to 'src/game')
-rw-r--r-- | src/game/g_cmds.c | 2 |
1 files changed, 1 insertions, 1 deletions
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 ) ); |