diff options
| author | Kirill Petrashin <kirill8201@yandex.ru> | 2026-04-05 10:22:09 +0300 |
|---|---|---|
| committer | Kirill Petrashin <kirill8201@yandex.ru> | 2026-04-05 10:22:09 +0300 |
| commit | 81c2e4ceed1da913d6137f7d3fd8af1ddf9faedc (patch) | |
| tree | c59bc2efdda70f44153a304c4d041237e9dec846 | |
| parent | 66ffa8e6ea83f94d080171589675279671b5f175 (diff) | |
| download | astar-81c2e4ceed1da913d6137f7d3fd8af1ddf9faedc.tar.xz | |
Fix cursor location text position in anim()
| -rw-r--r-- | path.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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; |
