1
This commit is contained in:
parent
16662eaed7
commit
896be1d621
@ -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;
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user