Don't have g_teamAutoJoin affect bot's team

Bots set their team later, setting it here causes some bots to change team and die later. Can cause extra skulls to be spawn at beginning of harvester (bug #5740).
This commit is contained in:
Zack Middleton 2012-09-08 22:32:41 +00:00
parent b4a76e74f7
commit 56ebe14239

View file

@ -107,7 +107,7 @@ void G_InitSessionData( gclient_t *client, char *userinfo ) {
// initial team determination // initial team determination
if ( g_gametype.integer >= GT_TEAM ) { if ( g_gametype.integer >= GT_TEAM ) {
if ( g_teamAutoJoin.integer ) { if ( g_teamAutoJoin.integer && !(g_entities[ client - level.clients ].r.svFlags & SVF_BOT) ) {
sess->sessionTeam = PickTeam( -1 ); sess->sessionTeam = PickTeam( -1 );
BroadcastTeamChange( client, -1 ); BroadcastTeamChange( client, -1 );
} else { } else {