From 5a198c82dbfdd739f4485232d458f6e7277c931f Mon Sep 17 00:00:00 2001 From: JezuzLizard Date: Sat, 29 Apr 2023 16:38:29 -0700 Subject: [PATCH] Use custom AStar algorithm. Remove print. --- src/component/ai.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/component/ai.cpp b/src/component/ai.cpp index 1a5e046..0074976 100644 --- a/src/component/ai.cpp +++ b/src/component/ai.cpp @@ -447,7 +447,7 @@ namespace ai game::pathnode_t* pNodeTo = game::Path_NearestNodeNotCrossPlanes(-2, maxNodes, vGoalPos, nodes.get(), 192.0f, 0.0f, 0.0f, 0.0f, &returnCount, game::NEAREST_NODE_DO_HEIGHT_CHECK); if (!pNodeTo) { - printf("Couldn't find the node to\n"); + //printf("Couldn't find the node to\n"); } game::pathnode_t* pNodeFrom = game::Path_NearestNodeNotCrossPlanes(-2, maxNodes, vStartPos, nodes.get(), 192.0f, 0.0f, 0.0f, 0.0f, &returnCount, game::NEAREST_NODE_DO_HEIGHT_CHECK); if (pNodeTo && pNodeFrom) @@ -611,7 +611,7 @@ namespace ai auto eTeam = game::team_map.at(team); - auto success = game::Path_FindPath(path.get(), eTeam, start_pos, goal_pos, allow_negotiation_links); + auto success = Path_FindPath_custom(path.get(), eTeam, start_pos, goal_pos, allow_negotiation_links); if (!success) {