Skip to content

Commit

Permalink
Fixed bot team join on duel gametype
Browse files Browse the repository at this point in the history
  • Loading branch information
TriForceX authored and aufau committed May 8, 2020
1 parent 5b27e7f commit a03b267
Showing 1 changed file with 1 addition and 6 deletions.
7 changes: 1 addition & 6 deletions code/game/g_session.c
Original file line number Diff line number Diff line change
Expand Up @@ -208,12 +208,7 @@ void G_InitSessionData( gclient_t *client, char *userinfo, qboolean isBot, qbool
if ( level.numNonSpectatorClients >= 2 ) {
sess->sessionTeam = TEAM_SPECTATOR;
} else {
if (g_requireClientside.integer && !client->pers.registered) {
sess->sessionTeam = TEAM_SPECTATOR;
}
else {
sess->sessionTeam = TEAM_FREE;
}
sess->sessionTeam = (g_requireClientside.integer && !client->pers.registered && !isBot) ? TEAM_SPECTATOR : TEAM_FREE;
}
break;
}
Expand Down

0 comments on commit a03b267

Please sign in to comment.