This commit is contained in:
aozhiwei 2024-04-17 19:55:19 +08:00
parent ccdcc3564f
commit bea50ff09c

View File

@ -3150,6 +3150,21 @@ void Room::OnBattleStart()
++battle_team_count_;
return true;
});
if (!IsMobaModeRoom() && !IsSandTableRoom()) {
std::vector<std::shared_ptr<BornPoint>> born_point_list;
born_point_list.reserve(born_point_hash_.size());
for (auto& pair : born_point_hash_) {
pair.second->player_num = 0;
pair.second->android_num = 0;
born_point_list.push_back(pair.second);
}
if (born_point_list.empty()) {
A8_ABORT();
}
std::shuffle(born_point_list.begin(),
born_point_list.end(),
std::default_random_engine(a8::XGetTickCount()));
}
battle_starting_ = false;
SendSMTeamFull(nullptr);
SendRecentBattle();