This commit is contained in:
aozhiwei 2023-03-16 18:14:14 +08:00
parent e959d8d72e
commit b29c9dbc35

View File

@ -1652,8 +1652,14 @@ void Room::FillTeam()
}
std::random_shuffle(free_team_list.begin(), free_team_list.end());
for (auto& pair : accountid_hash_) {
if (free_team_list.empty()) {
break;
}
if (!pair.second->GetTeam()->IsFull()) {
for (int i = pair.second->GetTeam()->GetMemberNum(); i < MAX_TEAM_NUM; ++i) {
if (!free_team_list.empty()) {
}
}
}
}
}