This commit is contained in:
aozhiwei 2023-03-15 15:38:32 +08:00
parent 60cbd67d29
commit b987cf5464

View File

@ -73,20 +73,18 @@ void HideBuff::Check()
for (auto& pair : alert_buff_hash_) { for (auto& pair : alert_buff_hash_) {
auto& tuple = pair.second; auto& tuple = pair.second;
if (std::get<2>(tuple) < step_) { if (std::get<2>(tuple) < step_) {
if (Collision::CheckCC(owner, if (std::get<0>(tuple).Get()) {
alert_range, if (Collision::CheckCC(owner,
std::get<0>(tuple).Get(), alert_range,
std::get<0>(tuple).Get()->GetRadius() std::get<0>(tuple).Get(),
)) { std::get<0>(tuple).Get()->GetRadius()
)) {
} else {
leave_targets.push_back(pair.first);
}
} else { } else {
leave_targets.push_back(pair.first); leave_targets.push_back(pair.first);
} }
if (std::get<0>(tuple).Get()) {
} else {
}
} }
} }
} }