aboutsummaryrefslogtreecommitdiff
path: root/main.c
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 /main.c
parent5ef20063da838d81f9a9020a12bb69a01975a372 (diff)
downloadastar-7dfb37936206de02e9a8c0ef5a3e0593aa535cd1.tar.xz
Print path cost correctly
Diffstat (limited to 'main.c')
-rw-r--r--main.c4
1 files changed, 2 insertions, 2 deletions
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;