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