This commit is contained in:
aozhiwei 2023-04-01 18:50:16 +08:00
parent 16662eaed7
commit 896be1d621

View File

@ -176,7 +176,7 @@ void Incubator::RecycleAndroid(Human* hum)
bool Incubator::CanSee(Human* hum, Human* exclude_hum)
{
Human* target = hum;
bool can_see = true;
bool can_see = false;
room->TraverseAlivePlayers
(
[target, exclude_hum, &can_see] (Human* hum) -> bool
@ -184,7 +184,7 @@ bool Incubator::CanSee(Human* hum, Human* exclude_hum)
if (hum != exclude_hum) {
if (target->GetPos().ManhattanDistance2D(hum->GetPos()) <
mt::Param::s().incubator_canset_distance) {
can_see = false;
can_see = true;
return false;
}
}