From 9284218d664c22b3e512abacd2c70d15cc339307 Mon Sep 17 00:00:00 2001 From: Kirill Petrashin Date: Mon, 13 Apr 2026 14:53:08 +0300 Subject: Clean up better --- map.c | 4 ++++ 1 file changed, 4 insertions(+) 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, ' '); -- cgit v1.2.3