aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKirill Petrashin <kirill8201@yandex.ru>2026-05-05 15:06:15 +0300
committerKirill Petrashin <kirill8201@yandex.ru>2026-05-05 15:06:15 +0300
commit72051eee0af52b572669fdd39656a4200b4f0219 (patch)
tree6f1476a2d30c202d244c6ae192212722e41596a8
parentbeef612173fe3840dff4c4bd9fc0c25e469a9aa6 (diff)
downloadastar-72051eee0af52b572669fdd39656a4200b4f0219.tar.xz
Fix error messagesHEADmaster
-rw-r--r--path.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/path.c b/path.c
index f1e46b0..ddad2ee 100644
--- a/path.c
+++ b/path.c
@@ -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);