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 /path.c | |
| parent | 5ef20063da838d81f9a9020a12bb69a01975a372 (diff) | |
| download | astar-7dfb37936206de02e9a8c0ef5a3e0593aa535cd1.tar.xz | |
Print path cost correctly
Diffstat (limited to 'path.c')
| -rw-r--r-- | path.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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()) { |
