diff options
author | M. Kristall <mkpdev@gmail.com> | 2010-02-28 03:31:02 +0000 |
---|---|---|
committer | Tim Angus <tim@ngus.net> | 2013-01-03 00:17:28 +0000 |
commit | 7411884e68e94dda2d229834e2043226f78d4717 (patch) | |
tree | 101999c0886eee4eb0795ef79988af1a51848b1e | |
parent | 9b23dbcd3a86aeca7685d779e9c8b70abf3fbc50 (diff) |
* Fix a couple bugs from revision 1966 including a crasher
-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 |