1
This commit is contained in:
parent
e959d8d72e
commit
b29c9dbc35
@ -1652,8 +1652,14 @@ void Room::FillTeam()
|
|||||||
}
|
}
|
||||||
std::random_shuffle(free_team_list.begin(), free_team_list.end());
|
std::random_shuffle(free_team_list.begin(), free_team_list.end());
|
||||||
for (auto& pair : accountid_hash_) {
|
for (auto& pair : accountid_hash_) {
|
||||||
|
if (free_team_list.empty()) {
|
||||||
|
break;
|
||||||
|
}
|
||||||
if (!pair.second->GetTeam()->IsFull()) {
|
if (!pair.second->GetTeam()->IsFull()) {
|
||||||
|
for (int i = pair.second->GetTeam()->GetMemberNum(); i < MAX_TEAM_NUM; ++i) {
|
||||||
|
if (!free_team_list.empty()) {
|
||||||
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user