aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKirill Petrashin <kirill8201@yandex.ru>2026-04-21 16:13:13 +0300
committerKirill Petrashin <kirill8201@yandex.ru>2026-04-21 16:13:13 +0300
commit338353777c95d23bb93066e53364b13f46b51964 (patch)
tree7e02e96a43e75fa35f796e2278e5fc26cc6e75cb
parente50ce34ae6fc52b919ed3a43af1b6b41f0240bd0 (diff)
downloadastar-338353777c95d23bb93066e53364b13f46b51964.tar.xz
Remove a TODO
-rw-r--r--path.c1
1 files changed, 0 insertions, 1 deletions
diff --git a/path.c b/path.c
index 415d0af..dc31f18 100644
--- a/path.c
+++ b/path.c
@@ -209,7 +209,6 @@ Path astar_path(int dirs, Map map, size_t **cell_costs, size_t width, size_t hei
/* The heuristic function */
size_t (*heuristic)(Position, Position) = NULL;
- /* TODO: maybe a sort of a demo with different heuristics would be cool idk */
switch (dirs) {
case 4: neighbours = &neighbours_4dir; heuristic = &manhattan_distance; break;
case 8: neighbours = &neighbours_8dir; heuristic = &diagonal_distance; break;