From f0b6bb6974c823c4b5a7deffce0748f2ff6370de Mon Sep 17 00:00:00 2001 From: Kirill Petrashin Date: Tue, 14 Apr 2026 18:25:30 +0300 Subject: Change how messages are written, clean up differently --- path.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'path.c') diff --git a/path.c b/path.c index e216d8a..fd92908 100644 --- a/path.c +++ b/path.c @@ -18,7 +18,7 @@ int anim(Map map, size_t width, size_t height, Position start, Position end, Pos static char automatic = 0; while (1) { draw_map(map, width, height, start, end, cur, NULL, visited, frontier); - message(height, "cur: %zu %zu", cur->x, cur->y); + set_message("cur: %zu %zu", cur->x, cur->y); print_message(height); if (automatic) { wrefresh(stdscr); usleep(ANIM_DELAY_USEC); return 0; } switch (getch()) { case 'h': map_offset_x += 2; break; @@ -52,7 +52,7 @@ int anim(Map map, size_t width, size_t height, Position start, Position end, Pos /* TODO: Add a binding to do a bmp */ case 'a': automatic = 1; break; - case 'q': return -1; + case 'q': clear_message(); return -1; default: return 0; } } -- cgit v1.2.3