diff options
| -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); |
