aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKirill Petrashin <kirill8201@yandex.ru>2026-04-05 10:22:09 +0300
committerKirill Petrashin <kirill8201@yandex.ru>2026-04-05 10:22:09 +0300
commit81c2e4ceed1da913d6137f7d3fd8af1ddf9faedc (patch)
treec59bc2efdda70f44153a304c4d041237e9dec846
parent66ffa8e6ea83f94d080171589675279671b5f175 (diff)
downloadastar-81c2e4ceed1da913d6137f7d3fd8af1ddf9faedc.tar.xz
Fix cursor location text position in anim()
-rw-r--r--path.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/path.c b/path.c
index 2b07c55..8145c01 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, map_offset_x, "cur: %zu %zu", cur->x, cur->y);
+ mvprintw(height+2 + map_offset_y - 1, map_offset_x - 2, "cur: %zu %zu", cur->x, cur->y);
if (automatic) { usleep(ANIM_DELAY_USEC); return 0; }
switch (getch()) {
case 'h': map_offset_x -= 2; break;