diff options
| -rw-r--r-- | map.c | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -413,7 +413,7 @@ void draw_map(Map map, size_t width, size_t height, Position start, Position goa } void print_message(size_t height) { - mvaddnstr(height + map_offset_y + 1, map_offset_x - 2, message, MESSAGE_MAX_SIZE); + mvaddnstr(height + map_offset_y + 1, map_offset_x - 2, message, MESSAGE_MAX_SIZE); clrtoeol(); } void map_free(Map map, size_t height) { @@ -437,7 +437,6 @@ void print_map_out(Map map, size_t width, size_t height) { } void map_editor(Map *map, size_t *width, size_t *height, Position *start, Position *goal) { - clear(); draw_map(*map, *width, *height, *start, *goal, NULL, NULL, NULL, NULL); set_message("You've entered the map editor. 'q' to quit"); print_message(*height); @@ -638,6 +637,7 @@ void map_editor(Map *map, size_t *width, size_t *height, Position *start, Positi } } } else { /* Only update the map if not a mouse event */ + draw_map(*map, *width, *height, *start, *goal, NULL, NULL, NULL, NULL); } } |
