From 7411884e68e94dda2d229834e2043226f78d4717 Mon Sep 17 00:00:00 2001 From: "M. Kristall" Date: Sun, 28 Feb 2010 03:31:02 +0000 Subject: * Fix a couple bugs from revision 1966 including a crasher --- src/game/g_client.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'src/game') 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 -- cgit