aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKirill Petrashin <kirill8201@yandex.ru>2026-04-13 15:14:45 +0300
committerKirill Petrashin <kirill8201@yandex.ru>2026-04-13 15:14:45 +0300
commit15314877f2f503c20994bbd1e2bf881f5f2d87a6 (patch)
tree8b4ba7d786cb3f2a1844f893ce6aa55180c78dbe
parentc210bb036dcb4ce2e9a276d590be815fc4b09897 (diff)
downloadastar-15314877f2f503c20994bbd1e2bf881f5f2d87a6.tar.xz
Move the "Saved..." message to map_to_bmp()
-rw-r--r--bmp.c2
-rw-r--r--main.c1
2 files changed, 2 insertions, 1 deletions
diff --git a/bmp.c b/bmp.c
index 3abac0d..abc0db5 100644
--- a/bmp.c
+++ b/bmp.c
@@ -2,6 +2,7 @@
#include <stdlib.h>
#include <stdint.h>
#include <string.h>
+#include <curses.h>
#include "map.h"
#include "path.h"
@@ -97,5 +98,6 @@ void map_to_bmp(Map map, size_t map_width, size_t map_height, Position start, Po
fclose(fout);
free(buf);
+ message(height, "Saved to %s", filename);
return;
}
diff --git a/main.c b/main.c
index b60b36c..a0d61dd 100644
--- a/main.c
+++ b/main.c
@@ -217,7 +217,6 @@ int main(int argc, char **argv) {
curs_set(0); /* Hide the cursor */
noecho(); /* Don't echo characters */
- message(height, "Saved to %s", filename);
getch();
break;