diff options
author | /dev/humancontroller <devhc@example.com> | 2017-04-13 11:30:00 +0000 |
---|---|---|
committer | /dev/humancontroller <devhc@example.com> | 2017-04-15 17:24:20 +0200 |
commit | ecdfd00b5bff42afacd4f5267bdef9ae61bfc154 (patch) | |
tree | 18458c0ef7cd83137c188be9b4e61124765ab3a0 /src/game/g_cmds.c | |
parent | ade61ba16bcaa053255d8564f6ed45cfb72df13f (diff) |
implement g_gradualFreeFunds: give free funds to each player every 2 minutes, regardless of kills and deaths
Diffstat (limited to 'src/game/g_cmds.c')
-rw-r--r-- | src/game/g_cmds.c | 2 |
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 ) |