diff options
Diffstat (limited to 'path.c')
| -rw-r--r-- | path.c | 4 |
1 files changed, 2 insertions, 2 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); - 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; } } |
