aboutsummaryrefslogtreecommitdiff
path: root/path.c
diff options
context:
space:
mode:
authorKirill Petrashin <kirill8201@yandex.ru>2026-04-11 22:25:00 +0300
committerKirill Petrashin <kirill8201@yandex.ru>2026-04-11 22:25:00 +0300
commite423c81971fb362b98e13b8172c107ed4f1af647 (patch)
tree499b50768e4127a96371167906fa5bdd53a4b2b7 /path.c
parent6ea977db5faa9342c90a4feb81a19182b55ab574 (diff)
downloadastar-e423c81971fb362b98e13b8172c107ed4f1af647.tar.xz
Fix automatic mode not refreshing the screen
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 e27723b..94925af 100644
--- a/path.c
+++ b/path.c
@@ -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;