diff options
| author | Kirill Petrashin <kirill8201@yandex.ru> | 2026-04-15 16:55:18 +0300 |
|---|---|---|
| committer | Kirill Petrashin <kirill8201@yandex.ru> | 2026-04-15 16:55:18 +0300 |
| commit | 236eee73566c62e601db674c053c33aa3f41b31b (patch) | |
| tree | f62f1dcd0c7beae306236d9555b52ab737a0cbf3 | |
| parent | ae56cad3522a29ffc6a7c20df38a9817c505ef08 (diff) | |
| download | astar-236eee73566c62e601db674c053c33aa3f41b31b.tar.xz | |
Fix clearing wrongly
| -rw-r--r-- | map.c | 2 |
1 files changed, 1 insertions, 1 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); 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) { |
