1
This commit is contained in:
parent
2fb4b632be
commit
b24c5768fa
@ -2700,12 +2700,15 @@ void Room::SyncFrameData()
|
||||
|
||||
void Room::RemoveRescue(Human* hum)
|
||||
{
|
||||
for (auto& pair : human_hash_) {
|
||||
if (pair.second != hum && pair.second->GetActionType() == AT_Relive &&
|
||||
pair.second->GetActionTargetId() == hum->GetUniId()) {
|
||||
pair.second->CancelAction();
|
||||
}
|
||||
}
|
||||
TraverseHumanList
|
||||
(
|
||||
[this, hum] (Human* ele_hum) -> bool
|
||||
{
|
||||
if (ele_hum != hum && ele_hum->GetActionType() == AT_Relive &&
|
||||
ele_hum->GetActionTargetId() == hum->GetUniId()) {
|
||||
ele_hum->CancelAction();
|
||||
}
|
||||
});
|
||||
}
|
||||
|
||||
void Room::NotifyCountdown(const std::string& msg, int time)
|
||||
|
Loading…
x
Reference in New Issue
Block a user