aboutsummaryrefslogtreecommitdiff
path: root/map.h
diff options
context:
space:
mode:
authorKirill Petrashin <kirill8201@yandex.ru>2026-04-16 22:43:56 +0300
committerKirill Petrashin <kirill8201@yandex.ru>2026-04-16 22:43:56 +0300
commit7dfb37936206de02e9a8c0ef5a3e0593aa535cd1 (patch)
treeeef434c007e53a7447f5cc4744cae304fc0fdcd4 /map.h
parent5ef20063da838d81f9a9020a12bb69a01975a372 (diff)
downloadastar-7dfb37936206de02e9a8c0ef5a3e0593aa535cd1.tar.xz
Print path cost correctly
Diffstat (limited to 'map.h')
-rw-r--r--map.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/map.h b/map.h
index 93672b7..7faa597 100644
--- a/map.h
+++ b/map.h
@@ -58,8 +58,8 @@ void map_to_file_plaintext(char *filename, Map map, size_t width, size_t height,
size_t **file_plaintext_costs(char *filename, size_t width, size_t height);
/* Draw the map. Bet you didn't expect that.
- * path could be NULL to draw a map with no path. So can cursor, frontier and visited */
-void draw_map(Map map, size_t width, size_t height, Position start, Position goal, Position *cursor, Path path, char **visited, PositionPQ *frontier);
+ * path could be NULL to draw a map with no path. So can cursor, frontier and visited and cell_costs */
+void draw_map(Map map, size_t **cell_costs, size_t width, size_t height, Position start, Position goal, Position *cursor, Path path, char **visited, PositionPQ *frontier);
void print_message(size_t height);