aboutsummaryrefslogtreecommitdiff
path: root/bmp.c
diff options
context:
space:
mode:
Diffstat (limited to 'bmp.c')
-rw-r--r--bmp.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/bmp.c b/bmp.c
index 33dd7dc..739c2ad 100644
--- a/bmp.c
+++ b/bmp.c
@@ -94,7 +94,8 @@ void map_to_bmp(Map map, size_t map_width, size_t map_height, Position start, Po
FILE *fout = fopen(filename, "wb");
if (fout == NULL) {
- message(height, "Couldn't open %s for writing", filename);
+ set_message("Couldn't open %s for writing", filename);
+ print_message(height);
return;
}
fwrite(header, 1, 54, fout);
@@ -102,6 +103,7 @@ 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);
+ set_message("Saved to %s", filename);
+ print_message(height);
return;
}