1
This commit is contained in:
parent
390cce9fdd
commit
089f77ed3c
@ -1342,7 +1342,7 @@ int HeroAgent::SearchPickupObj()
|
|||||||
}
|
}
|
||||||
});
|
});
|
||||||
if (nearest_obj &&
|
if (nearest_obj &&
|
||||||
nearest_obj->GetPos().ManhattanDistance2D(owner_->GetPos()) < 300) {
|
nearest_obj->GetPos().ManhattanDistance2D(owner_->GetPos()) < 200) {
|
||||||
int obj_type = 0;
|
int obj_type = 0;
|
||||||
if (nearest_obj->IsCar()) {
|
if (nearest_obj->IsCar()) {
|
||||||
obj_type = 1;
|
obj_type = 1;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user