summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/game/g_admin.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/game/g_admin.c b/src/game/g_admin.c
index 70a069d..d10c718 100644
--- a/src/game/g_admin.c
+++ b/src/game/g_admin.c
@@ -8928,7 +8928,7 @@ qboolean G_admin_invisible( gentity_t *ent, int skiparg )
// Make the player invisible
G_ChangeTeam( ent, PTE_NONE );
ent->client->sess.invisible = qtrue;
- ClientUserinfoChanged( ent->client->pers.connection->clientNum, qfalse );
+ ClientUserinfoChanged( ent-g_entities, qfalse );
G_admin_namelog_update( ent->client, qtrue );
trap_SendServerCommand( -1, va( "print \"%s" S_COLOR_WHITE " disconnected\n\"", ent->client->pers.netname ) );
}
@@ -8936,7 +8936,7 @@ qboolean G_admin_invisible( gentity_t *ent, int skiparg )
{
// Make the player visible
ent->client->sess.invisible = qfalse;
- ClientUserinfoChanged( ent->client->pers.connection->clientNum, qfalse );
+ ClientUserinfoChanged( ent-g_entities, qfalse );
G_admin_namelog_update( ent->client, qfalse );
trap_SendServerCommand( -1, va( "print \"%s" S_COLOR_WHITE " connected\n\"", ent->client->pers.netname ) );
trap_SendServerCommand( -1, va( "print \"%s" S_COLOR_WHITE " entered the game\n\"", ent->client->pers.netname ) );