summaryrefslogtreecommitdiff
path: root/src/game/g_team.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/game/g_team.c')
-rw-r--r--src/game/g_team.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/game/g_team.c b/src/game/g_team.c
index dec34e9a..b0709949 100644
--- a/src/game/g_team.c
+++ b/src/game/g_team.c
@@ -201,6 +201,8 @@ void G_LeaveTeam( gentity_t *self )
else if( ent->s.eType == ET_MISSILE && ent->r.ownerNum == self->s.number )
G_FreeEntity( ent );
}
+
+ G_namelog_update_score( self->client );
}
/*
@@ -219,8 +221,6 @@ void G_ChangeTeam( gentity_t *ent, team_t newTeam )
ent->client->pers.teamSelection = newTeam;
ent->client->pers.classSelection = PCL_NONE;
ClientSpawn( ent, NULL, NULL, NULL );
- ent->client->pers.joinedATeam = qtrue;
- ent->client->pers.teamChangeTime = level.time;
if( oldTeam == TEAM_HUMANS && newTeam == TEAM_ALIENS )
{
@@ -247,6 +247,7 @@ void G_ChangeTeam( gentity_t *ent, team_t newTeam )
G_LogPrintf( "ChangeTeam: %d %s: %s" S_COLOR_WHITE " switched teams\n",
ent - g_entities, BG_TeamName( newTeam ), ent->client->pers.netname );
+ G_namelog_update_score( ent->client );
TeamplayInfoMessage( ent );
}