diff options
Diffstat (limited to 'bmp.c')
| -rw-r--r-- | bmp.c | 6 |
1 files changed, 4 insertions, 2 deletions
@@ -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; } |
