aboutsummaryrefslogtreecommitdiff
path: root/path.c
diff options
context:
space:
mode:
authorKirill Petrashin <kirill8201@yandex.ru>2026-04-11 22:21:47 +0300
committerKirill Petrashin <kirill8201@yandex.ru>2026-04-11 22:21:47 +0300
commit6ea977db5faa9342c90a4feb81a19182b55ab574 (patch)
treeed675fddf40669cc36b682a6bee4f4c7dc745b46 /path.c
parentd676ac91b1906f5de8695facb6b96bf0509e6e1f (diff)
downloadastar-6ea977db5faa9342c90a4feb81a19182b55ab574.tar.xz
Add macro to print a message
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 8145c01..e27723b 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);
- mvprintw(height+2 + map_offset_y - 1, map_offset_x - 2, "cur: %zu %zu", cur->x, cur->y);
+ message(height, "cur: %zu %zu", cur->x, cur->y);
if (automatic) { usleep(ANIM_DELAY_USEC); return 0; }
switch (getch()) {
case 'h': map_offset_x -= 2; break;