mirror of
https://github.com/ioquake/ioq3.git
synced 2024-11-10 07:11:46 +00:00
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:
parent
b4a76e74f7
commit
56ebe14239
1 changed files with 1 additions and 1 deletions
|
@ -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 {
|
||||||
|
|
Loading…
Reference in a new issue