From 15314877f2f503c20994bbd1e2bf881f5f2d87a6 Mon Sep 17 00:00:00 2001 From: Kirill Petrashin Date: Mon, 13 Apr 2026 15:14:45 +0300 Subject: Move the "Saved..." message to map_to_bmp() --- bmp.c | 2 ++ main.c | 1 - 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/bmp.c b/bmp.c index 3abac0d..abc0db5 100644 --- a/bmp.c +++ b/bmp.c @@ -2,6 +2,7 @@ #include #include #include +#include #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; -- cgit v1.2.3