summaryrefslogtreecommitdiff
path: root/src/game/g_cmds.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/game/g_cmds.c')
-rw-r--r--src/game/g_cmds.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/game/g_cmds.c b/src/game/g_cmds.c
index 9ebb659..f93b2f8 100644
--- a/src/game/g_cmds.c
+++ b/src/game/g_cmds.c
@@ -654,6 +654,8 @@ void G_ChangeTeam( gentity_t *ent, pTeam_t newTeam )
G_LeaveTeam( ent );
ent->client->pers.teamSelection = newTeam;
+ ent->client->pers.lastFreekillTime = level.time;
+
// G_LeaveTeam() calls G_StopFollowing() which sets spec mode to free.
// Undo that in this case, or else people can freespec while in the spawn queue on their new team
if( newTeam != PTE_NONE )