summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorM. Kristall <mkpdev@gmail.com>2010-02-28 03:31:02 +0000
committerTim Angus <tim@ngus.net>2013-01-03 00:17:28 +0000
commit7411884e68e94dda2d229834e2043226f78d4717 (patch)
tree101999c0886eee4eb0795ef79988af1a51848b1e
parent9b23dbcd3a86aeca7685d779e9c8b70abf3fbc50 (diff)
* Fix a couple bugs from revision 1966 including a crasher
-rw-r--r--src/game/g_client.c5
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