1
This commit is contained in:
parent
d176d048ae
commit
0020a8fcf6
@ -158,6 +158,10 @@ void Room::UnInit()
|
|||||||
delete pair.second;
|
delete pair.second;
|
||||||
}
|
}
|
||||||
team_hash_.clear();
|
team_hash_.clear();
|
||||||
|
for (auto& pair : discard_team_hash_) {
|
||||||
|
delete pair.second;
|
||||||
|
}
|
||||||
|
discard_team_hash_.clear();
|
||||||
A8_SAFE_DELETE(frame_event_data);
|
A8_SAFE_DELETE(frame_event_data);
|
||||||
PerfMonitor::Instance()->alive_count -= alive_count_;
|
PerfMonitor::Instance()->alive_count -= alive_count_;
|
||||||
}
|
}
|
||||||
@ -1881,8 +1885,9 @@ void Room::RandRemoveAndroid()
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
if (hum) {
|
if (hum) {
|
||||||
if (hum->team_id != 0) {
|
if (hum->GetTeam()) {
|
||||||
team_hash_.erase(hum->team_id);
|
team_hash_.erase(hum->GetTeam()->GetTeamId());
|
||||||
|
discard_team_hash_[hum->GetTeam()->GetTeamId()] = hum->GetTeam();
|
||||||
}
|
}
|
||||||
if (hum->born_point) {
|
if (hum->born_point) {
|
||||||
DecBornPointHumanNum(hum->born_point, hum);
|
DecBornPointHumanNum(hum->born_point, hum);
|
||||||
|
@ -363,6 +363,7 @@ private:
|
|||||||
std::set<int> refreshed_robot_set_;
|
std::set<int> refreshed_robot_set_;
|
||||||
std::map<int, Team*> team_hash_;
|
std::map<int, Team*> team_hash_;
|
||||||
std::map<int, Team*> combineable_team_hash_;
|
std::map<int, Team*> combineable_team_hash_;
|
||||||
|
std::map<int, Team*> discard_team_hash_;
|
||||||
std::map<std::string, Player*> accountid_hash_;
|
std::map<std::string, Player*> accountid_hash_;
|
||||||
std::map<int, MoveableEntity*> moveable_hash_;
|
std::map<int, MoveableEntity*> moveable_hash_;
|
||||||
std::map<int, Entity*> uniid_hash_;
|
std::map<int, Entity*> uniid_hash_;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user