diff options
| author | Kirill Petrashin <kirill8201@yandex.ru> | 2026-04-11 22:25:00 +0300 |
|---|---|---|
| committer | Kirill Petrashin <kirill8201@yandex.ru> | 2026-04-11 22:25:00 +0300 |
| commit | e423c81971fb362b98e13b8172c107ed4f1af647 (patch) | |
| tree | 499b50768e4127a96371167906fa5bdd53a4b2b7 | |
| parent | 6ea977db5faa9342c90a4feb81a19182b55ab574 (diff) | |
| download | astar-e423c81971fb362b98e13b8172c107ed4f1af647.tar.xz | |
Fix automatic mode not refreshing the screen
| -rw-r--r-- | path.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -19,7 +19,7 @@ int anim(Map map, size_t width, size_t height, Position start, Position end, Pos while (1) { draw_map(map, width, height, start, end, cur, NULL, visited, frontier); message(height, "cur: %zu %zu", cur->x, cur->y); - if (automatic) { usleep(ANIM_DELAY_USEC); return 0; } + if (automatic) { wrefresh(stdscr); usleep(ANIM_DELAY_USEC); return 0; } switch (getch()) { case 'h': map_offset_x -= 2; break; case 'l': map_offset_x += 2; break; |
