aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKirill Petrashin <kirill8201@yandex.ru>2026-04-15 16:55:18 +0300
committerKirill Petrashin <kirill8201@yandex.ru>2026-04-15 16:55:18 +0300
commit236eee73566c62e601db674c053c33aa3f41b31b (patch)
treef62f1dcd0c7beae306236d9555b52ab737a0cbf3
parentae56cad3522a29ffc6a7c20df38a9817c505ef08 (diff)
downloadastar-236eee73566c62e601db674c053c33aa3f41b31b.tar.xz
Fix clearing wrongly
-rw-r--r--map.c2
1 files changed, 1 insertions, 1 deletions
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) {