diff options
author | Christopher Schwarz <lakitu7@gmail.com> | 2009-10-18 17:42:10 +0000 |
---|---|---|
committer | Tim Angus <tim@ngus.net> | 2013-01-03 00:16:55 +0000 |
commit | c4c6f67a49e33d14e24d56d0082f153797cd30f8 (patch) | |
tree | bbb86b9ed4128709a28713fe6bd89f15f84c9687 /src/game/g_client.c | |
parent | 5840d24c078ea3dacc1a0556ee5e98ba4a557682 (diff) |
* (bug 4309) Add options to !restart that allow for keeping/switching player teams, and optionally also to lock them.
Diffstat (limited to 'src/game/g_client.c')
-rw-r--r-- | src/game/g_client.c | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/src/game/g_client.c b/src/game/g_client.c index 071a8441..ca002506 100644 --- a/src/game/g_client.c +++ b/src/game/g_client.c @@ -1285,6 +1285,16 @@ char *ClientConnect( int clientNum, qboolean firstTime ) // count current clients and rank for scoreboard CalculateRanks( ); G_admin_namelog_update( client, qfalse ); + + + // if this is after !restart keepteams or !restart switchteams, apply said selection + if ( client->sess.restartTeam != TEAM_NONE ) + { + G_ChangeTeam( ent, client->sess.restartTeam ); + client->sess.restartTeam = TEAM_NONE; + } + + return NULL; } |