This commit is contained in:
aozhiwei 2023-11-17 19:04:08 +08:00
parent 390cce9fdd
commit 089f77ed3c

View File

@ -1342,7 +1342,7 @@ int HeroAgent::SearchPickupObj()
}
});
if (nearest_obj &&
nearest_obj->GetPos().ManhattanDistance2D(owner_->GetPos()) < 300) {
nearest_obj->GetPos().ManhattanDistance2D(owner_->GetPos()) < 200) {
int obj_type = 0;
if (nearest_obj->IsCar()) {
obj_type = 1;