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 --- path.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'path.c') 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()) { -- cgit v1.2.3