This commit is contained in:
aozhiwei 2023-10-10 18:10:30 +08:00
parent 816d01e928
commit 1e79be8460

View File

@ -2934,6 +2934,21 @@ void Room::OnBattleStart()
},
&xtimer_attacher_);
}
if (IsMobaModeRoom()) {
TraverseTeams
(
[this] (Team* team) {
if (!team->IsViewTeam()) {
if (!moba_team_a_) {
moba_team_a_ = team;
} else {
moba_team_b_ = team;
}
}
return true;
}
);
}
}
void Room::AddTeam(class MatchTeam* team)