diff options
| author | Kirill Petrashin <kirill8201@yandex.ru> | 2026-04-16 22:43:56 +0300 |
|---|---|---|
| committer | Kirill Petrashin <kirill8201@yandex.ru> | 2026-04-16 22:43:56 +0300 |
| commit | 7dfb37936206de02e9a8c0ef5a3e0593aa535cd1 (patch) | |
| tree | eef434c007e53a7447f5cc4744cae304fc0fdcd4 /map.h | |
| parent | 5ef20063da838d81f9a9020a12bb69a01975a372 (diff) | |
| download | astar-7dfb37936206de02e9a8c0ef5a3e0593aa535cd1.tar.xz | |
Print path cost correctly
Diffstat (limited to 'map.h')
| -rw-r--r-- | map.h | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -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); |
