summaryrefslogtreecommitdiff
path: root/src/game
diff options
context:
space:
mode:
Diffstat (limited to 'src/game')
-rw-r--r--src/game/g_cmds.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/game/g_cmds.c b/src/game/g_cmds.c
index 4b82b9e8..fc5a95af 100644
--- a/src/game/g_cmds.c
+++ b/src/game/g_cmds.c
@@ -96,7 +96,7 @@ int G_ClientNumberFromString( gentity_t *to, char *s )
cl = &level.clients[ idnum ];
- if( cl->pers.connected != CON_CONNECTED )
+ if( cl->pers.connected == CON_DISCONNECTED )
return -1;
return idnum;
@@ -107,7 +107,7 @@ int G_ClientNumberFromString( gentity_t *to, char *s )
for( idnum = 0, cl = level.clients; idnum < level.maxclients; idnum++, cl++ )
{
- if( cl->pers.connected != CON_CONNECTED )
+ if( cl->pers.connected == CON_DISCONNECTED )
continue;
G_SanitiseName( cl->pers.netname, n2 );