From 236eee73566c62e601db674c053c33aa3f41b31b Mon Sep 17 00:00:00 2001 From: Kirill Petrashin Date: Wed, 15 Apr 2026 16:55:18 +0300 Subject: Fix clearing wrongly --- map.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/map.c b/map.c index be46a83..a4974ac 100644 --- a/map.c +++ b/map.c @@ -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); clrtoeol(); + if (mvaddnstr(height + map_offset_y + 1, map_offset_x - 2, message, MESSAGE_MAX_SIZE) == OK) clrtoeol(); } void map_free(Map map, size_t height) { -- cgit v1.2.3