This commit is contained in:
aozhiwei 2024-02-04 11:09:11 +08:00
parent 11711a219d
commit fb85616ceb

View File

@ -2595,7 +2595,7 @@ int Room::InitWithCustomBattle(long ip_saddr, int socket_handle, std::shared_ptr
new_team->SetAutoFill(true); new_team->SetAutoFill(true);
room_teams.push_back(new_team); room_teams.push_back(new_team);
} }
int side = 1; int side = a8::RandEx(1, 2);
for (size_t i = 0; i < 2; ++i) { for (size_t i = 0; i < 2; ++i) {
auto team = room_teams.at(i); auto team = room_teams.at(i);
if (team->GetMemberNum() < MAX_TEAM_NUM) { if (team->GetMemberNum() < MAX_TEAM_NUM) {