File tree Expand file tree Collapse file tree 3 files changed +6
-3
lines changed
Expand file tree Collapse file tree 3 files changed +6
-3
lines changed Original file line number Diff line number Diff line change @@ -1300,7 +1300,8 @@ void ServerLobby::startSelection(const Event *event)
13001300 }
13011301
13021302
1303- if (ServerConfig::m_team_choosing && race_manager->teamEnabled ())
1303+ if (!ServerConfig::m_owner_less && ServerConfig::m_team_choosing &&
1304+ race_manager->teamEnabled ())
13041305 {
13051306 auto red_blue = STKHost::get ()->getAllPlayersTeamInfo ();
13061307 if ((red_blue.first == 0 || red_blue.second == 0 ) &&
Original file line number Diff line number Diff line change @@ -314,7 +314,8 @@ void loadServerLobbyFromConfig()
314314 {
315315 if (m_min_start_game_players > m_server_max_players)
316316 m_min_start_game_players = 1 ;
317- m_team_choosing = false ;
317+ if (!m_live_players)
318+ m_team_choosing = false ;
318319 m_server_configurable = false ;
319320 }
320321 if (modes.second == RaceManager::MAJOR_MODE_GRAND_PRIX)
Original file line number Diff line number Diff line change @@ -206,7 +206,8 @@ namespace ServerConfig
206206 SERVER_CFG_PREFIX BoolServerConfigParam m_team_choosing
207207 SERVER_CFG_DEFAULT (BoolServerConfigParam(true , " team-choosing" ,
208208 " Enable team choosing in lobby in team game (soccer and CTF). "
209- " If owner-less is enabled, than this option is always disabled." ));
209+ " If owner-less is enabled and live-players is not enabled, than this "
210+ " option is always disabled." ));
210211
211212 SERVER_CFG_PREFIX BoolServerConfigParam m_strict_players
212213 SERVER_CFG_DEFAULT (BoolServerConfigParam(false , " strict-players" ,
You can’t perform that action at this time.
0 commit comments