aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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);