1
This commit is contained in:
parent
ccdcc3564f
commit
bea50ff09c
@ -3150,6 +3150,21 @@ void Room::OnBattleStart()
|
|||||||
++battle_team_count_;
|
++battle_team_count_;
|
||||||
return true;
|
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;
|
battle_starting_ = false;
|
||||||
SendSMTeamFull(nullptr);
|
SendSMTeamFull(nullptr);
|
||||||
SendRecentBattle();
|
SendRecentBattle();
|
||||||
|
Loading…
x
Reference in New Issue
Block a user