mirror of
https://github.com/Relintai/pandemonium_engine.git
synced 2025-01-23 17:47:17 +01:00
Fix querying paths.
This commit is contained in:
parent
8880722565
commit
176a0e129c
@ -1217,7 +1217,7 @@ PathQueryResult PandemoniumNavigationServer::_query_path(const PathQueryParamete
|
|||||||
Vector<Vector3> path;
|
Vector<Vector3> path;
|
||||||
// while postprocessing is still part of map.get_path() need to check and route it here for the correct "optimize" post-processing
|
// while postprocessing is still part of map.get_path() need to check and route it here for the correct "optimize" post-processing
|
||||||
if (p_parameters.path_postprocessing == PathPostProcessing::PATH_POSTPROCESSING_CORRIDORFUNNEL) {
|
if (p_parameters.path_postprocessing == PathPostProcessing::PATH_POSTPROCESSING_CORRIDORFUNNEL) {
|
||||||
r_query_result.path = map->get_path(
|
path = map->get_path(
|
||||||
p_parameters.start_position,
|
p_parameters.start_position,
|
||||||
p_parameters.target_position,
|
p_parameters.target_position,
|
||||||
true,
|
true,
|
||||||
@ -1226,7 +1226,7 @@ PathQueryResult PandemoniumNavigationServer::_query_path(const PathQueryParamete
|
|||||||
((p_parameters.metadata_flags & PathMetadataFlags::PATH_INCLUDE_RIDS) != 0) ? &r_query_result.path_rids : nullptr,
|
((p_parameters.metadata_flags & PathMetadataFlags::PATH_INCLUDE_RIDS) != 0) ? &r_query_result.path_rids : nullptr,
|
||||||
((p_parameters.metadata_flags & PathMetadataFlags::PATH_INCLUDE_OWNERS) != 0) ? &r_query_result.path_owner_ids : nullptr);
|
((p_parameters.metadata_flags & PathMetadataFlags::PATH_INCLUDE_OWNERS) != 0) ? &r_query_result.path_owner_ids : nullptr);
|
||||||
} else if (p_parameters.path_postprocessing == PathPostProcessing::PATH_POSTPROCESSING_EDGECENTERED) {
|
} else if (p_parameters.path_postprocessing == PathPostProcessing::PATH_POSTPROCESSING_EDGECENTERED) {
|
||||||
r_query_result.path = map->get_path(
|
path = map->get_path(
|
||||||
p_parameters.start_position,
|
p_parameters.start_position,
|
||||||
p_parameters.target_position,
|
p_parameters.target_position,
|
||||||
false,
|
false,
|
||||||
|
Loading…
Reference in New Issue
Block a user