diff options
| -rw-r--r-- | map.c | 4 |
1 files changed, 4 insertions, 0 deletions
@@ -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, ' '); |
