diff options
| author | Kirill Petrashin <kirill8201@yandex.ru> | 2026-05-05 15:06:15 +0300 |
|---|---|---|
| committer | Kirill Petrashin <kirill8201@yandex.ru> | 2026-05-05 15:06:15 +0300 |
| commit | 72051eee0af52b572669fdd39656a4200b4f0219 (patch) | |
| tree | 6f1476a2d30c202d244c6ae192212722e41596a8 | |
| parent | beef612173fe3840dff4c4bd9fc0c25e469a9aa6 (diff) | |
| download | astar-master.tar.xz | |
| -rw-r--r-- | path.c | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -139,7 +139,7 @@ Path dijkstra_path(int dirs, Map map, size_t **cell_costs, size_t width, size_t case 8: if (wraparound_enabled) neighbours = &neighbours_8dir_wraparound; else neighbours = &neighbours_8dir; break; - default: error("Tried to call dijkstra_path with wrong direction amount\n"); + default: error("Tried to call dijkstra_path() with wrong direction amount\n"); } Path path = path_new(width, height); @@ -215,7 +215,7 @@ Path astar_path(int dirs, Map map, size_t **cell_costs, size_t width, size_t hei switch (dirs) { case 4: neighbours = &neighbours_4dir; heuristic = &manhattan_distance; break; case 8: neighbours = &neighbours_8dir; heuristic = &diagonal_distance; break; - default: error("Tried to call astar_path with wrong direction amount\n"); + default: error("Tried to call astar_path() with wrong direction amount\n"); } Path path = path_new(width, height); |
