aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKirill Petrashin <kirill8201@yandex.ru>2026-04-13 14:53:08 +0300
committerKirill Petrashin <kirill8201@yandex.ru>2026-04-13 14:53:08 +0300
commit9284218d664c22b3e512abacd2c70d15cc339307 (patch)
tree9453836177ff9e774dbe94a8a37d30b04635e2ed
parent300db4c7ce51b04715c08e6603a225b292964a76 (diff)
downloadastar-9284218d664c22b3e512abacd2c70d15cc339307.tar.xz
Clean up better
-rw-r--r--map.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/map.c b/map.c
index b2e6327..52f65d6 100644
--- a/map.c
+++ b/map.c
@@ -220,6 +220,9 @@ void draw_map(Map map, size_t width, size_t height, Position start, Position goa
* UPD: it was causing a bug, so I commented it out. I don't know why either */
//wnoutrefresh(stdscr);
+ /* Clear the message line */
+ if (move(height + map_offset_y + 1, map_offset_x - 2) != ERR) { clrtoeol(); };
+
/* Rendering boundaries, used to not render stuff that's outside the screen for performance */
size_t top_boundary = 0,
bottom_boundary = height,
@@ -235,6 +238,7 @@ void draw_map(Map map, size_t width, size_t height, Position start, Position goa
mvaddch(map_offset_y - 2, i + map_offset_x - 2, ' ');
mvaddch(height + map_offset_y + 1, i + map_offset_x - 2, ' ');
mvaddch(height + map_offset_y + 2, i + map_offset_x - 2, ' ');
+ mvaddch(height + map_offset_y + 3, i + map_offset_x - 2, ' ');
}
for (size_t i = 0; i <= height + 2; i++) { /* Vertical */
mvaddch(i + map_offset_y - 1, map_offset_x - 4, ' ');