From 72051eee0af52b572669fdd39656a4200b4f0219 Mon Sep 17 00:00:00 2001 From: Kirill Petrashin Date: Tue, 5 May 2026 15:06:15 +0300 Subject: Fix error messages --- path.c | 4 ++-- 1 file 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); -- cgit v1.2.3