diff options
author | IronClawTrem <louie.nutman@gmail.com> | 2019-08-27 01:15:15 +0100 |
---|---|---|
committer | IronClawTrem <louie.nutman@gmail.com> | 2019-08-27 01:19:50 +0100 |
commit | 1c970daca1c62539325df935b7afce0ecc08823b (patch) | |
tree | 3dd1bed6ba84a98d5280f67e50fb405385c45749 /src/game/g_cmds.c | |
parent | def759fd4110b4f58ea54f3024fec5bf9112b4c2 (diff) |
Implement g_gradualFreeFunds to improve time funds mechanic
Diffstat (limited to 'src/game/g_cmds.c')
-rw-r--r-- | src/game/g_cmds.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/game/g_cmds.c b/src/game/g_cmds.c index 09f8597..e4f6ad7 100644 --- a/src/game/g_cmds.c +++ b/src/game/g_cmds.c @@ -656,13 +656,15 @@ void G_ChangeTeam( gentity_t *ent, pTeam_t newTeam ) { pTeam_t oldTeam = ent->client->pers.teamSelection; qboolean isFixingImbalance=qfalse; - + if( oldTeam == newTeam ) return; 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 ) |