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 /main.c | |
| parent | 5ef20063da838d81f9a9020a12bb69a01975a372 (diff) | |
| download | astar-7dfb37936206de02e9a8c0ef5a3e0593aa535cd1.tar.xz | |
Print path cost correctly
Diffstat (limited to 'main.c')
| -rw-r--r-- | main.c | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -134,7 +134,7 @@ int main(int argc, char **argv) { if (!bmp_only) { init_ncurses(); - draw_map(map, width, height, start_pos, end_pos, NULL, NULL, NULL, NULL); + draw_map(map, NULL, width, height, start_pos, end_pos, NULL, NULL, NULL, NULL); wrefresh(stdscr); } @@ -153,7 +153,7 @@ int main(int argc, char **argv) { #endif while (1) { - draw_map(map, width, height, start_pos, end_pos, NULL, path, visited, NULL); + draw_map(map, cell_costs, width, height, start_pos, end_pos, NULL, path, visited, NULL); int c = getch(); switch (c) { case 'h': map_offset_x += 2; break; |
