diff options
-rw-r--r-- | src/game/g_client.c | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/src/game/g_client.c b/src/game/g_client.c index 731230b1..fc1ea9a7 100644 --- a/src/game/g_client.c +++ b/src/game/g_client.c @@ -1053,13 +1053,12 @@ void ClientUserinfoChanged( int clientNum ) { Q_strncpyz( client->pers.netname, newname, sizeof( client->pers.netname ) ); - G_namelog_update_name( client ); if( client->pers.connected == CON_CONNECTED ) { client->pers.namelog->nameChangeTime = level.time; client->pers.namelog->nameChanges++; - } + G_namelog_update_name( client ); if( *oldname ) { trap_SendServerCommand( -1, va( "print \"%s" S_COLOR_WHITE @@ -1698,8 +1697,8 @@ void ClientDisconnect( int clientNum ) if( !ent->client ) return; - G_namelog_disconnect( ent->client ); G_LeaveTeam( ent ); + G_namelog_disconnect( ent->client ); G_Vote( ent, TEAM_NONE, qfalse ); // stop any following clients |