Skip to content

Commit

Permalink
Update pathfinder.cpp
Browse files Browse the repository at this point in the history
  • Loading branch information
jere8184 authored Nov 30, 2024
1 parent 1d07cb5 commit 7f7d5e2
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion libopenage/pathfinding/pathfinder.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -231,7 +231,6 @@ const Pathfinder::portal_star_t Pathfinder::portal_a_star(const PathRequest &req
auto portal_pos = portal->get_exit_center(start_sector->get_id());
auto portal_abs_pos = sector_pos + portal_pos;
auto heuristic_cost = Pathfinder::heuristic_cost(portal_abs_pos, request.target);
std::cout << portal->get_id() << ": " << heuristic_cost << std::endl;
portal_node->current_cost = Pathfinder::heuristic_cost(portal_abs_pos, request.start);
portal_node->heuristic_cost = heuristic_cost;
portal_node->future_cost = portal_node->current_cost + heuristic_cost;
Expand Down

0 comments on commit 7f7d5e2

Please sign in to comment.