From 7dfb37936206de02e9a8c0ef5a3e0593aa535cd1 Mon Sep 17 00:00:00 2001 From: Kirill Petrashin Date: Thu, 16 Apr 2026 22:43:56 +0300 Subject: Print path cost correctly --- main.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'main.c') diff --git a/main.c b/main.c index 842e2a3..4577fca 100644 --- a/main.c +++ b/main.c @@ -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; -- cgit v1.2.3