aboutsummaryrefslogtreecommitdiff
path: root/map.c
diff options
context:
space:
mode:
Diffstat (limited to 'map.c')
-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, ' ');