1
This commit is contained in:
parent
daf1efdd4b
commit
e2537a6b1a
@ -247,7 +247,6 @@ behaviac::EBTStatus HeroAgent::RandomSafeZonePoint(int try_count, int step_len)
|
|||||||
}
|
}
|
||||||
auto context = MAKE_BTCONTEXT
|
auto context = MAKE_BTCONTEXT
|
||||||
(
|
(
|
||||||
bool find_ok = false;
|
|
||||||
);
|
);
|
||||||
auto co = std::make_shared<BtCoroutine>(context, "RandomSafeZonePoint");
|
auto co = std::make_shared<BtCoroutine>(context, "RandomSafeZonePoint");
|
||||||
co->runing_cb =
|
co->runing_cb =
|
||||||
@ -509,7 +508,6 @@ behaviac::EBTStatus HeroAgent::CoFindPath(const glm::vec3& pos)
|
|||||||
return behaviac::BT_RUNNING;
|
return behaviac::BT_RUNNING;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
owner_->room->map_instance->Scale(context->target_pos);
|
|
||||||
bool ret = owner_->GetMovement()->FindPath(context->target_pos, 0);
|
bool ret = owner_->GetMovement()->FindPath(context->target_pos, 0);
|
||||||
if (ret) {
|
if (ret) {
|
||||||
context->find_ok = true;
|
context->find_ok = true;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user