aboutsummaryrefslogtreecommitdiff
path: root/path.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 /path.c
parent5ef20063da838d81f9a9020a12bb69a01975a372 (diff)
downloadastar-7dfb37936206de02e9a8c0ef5a3e0593aa535cd1.tar.xz
Print path cost correctly
Diffstat (limited to 'path.c')
-rw-r--r--path.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/path.c b/path.c
index 4b791c2..52f7291 100644
--- a/path.c
+++ b/path.c
@@ -20,7 +20,7 @@ char anim_automatic = 0;
/* TODO: figure out input when automatic = 1. timeout() seems useful */
int anim(Map map, size_t width, size_t height, Position start, Position end, Position *cur, char **visited, PositionPQ *frontier) {
while (1) {
- draw_map(map, width, height, start, end, cur, NULL, visited, frontier);
+ draw_map(map, NULL, width, height, start, end, cur, NULL, visited, frontier);
set_message("cur: %zu %zu", cur->x, cur->y); print_message(height);
if (anim_automatic) { wrefresh(stdscr); usleep(ANIM_DELAY_USEC); return 0; }
switch (getch()) {