Better formation placement
This commit is contained in:
@@ -24,7 +24,9 @@ BzBTStatus aiMoveTo(AIBlackboard *data, f32 dt) {
|
||||
return BZ_BT_SUCCESS;
|
||||
}
|
||||
if (!ecs_has(ECS, data->entity, Path)) {
|
||||
entitySetPath(data->entity, target, game);
|
||||
bool pathfindSuccessful = entitySetPath(data->entity, target, game);
|
||||
if (!pathfindSuccessful)
|
||||
return BZ_BT_FAIL;
|
||||
}
|
||||
if (ecs_has(ECS, data->entity, Orientation)) {
|
||||
Orientation *orientation = ecs_get_mut(ECS, data->entity, Orientation);
|
||||
|
||||
Reference in New Issue
Block a user