diff options
| author | Kirill Petrashin <kirill8201@yandex.ru> | 2026-04-14 18:25:30 +0300 |
|---|---|---|
| committer | Kirill Petrashin <kirill8201@yandex.ru> | 2026-04-14 18:25:30 +0300 |
| commit | f0b6bb6974c823c4b5a7deffce0748f2ff6370de (patch) | |
| tree | 37ccd97ce0f10959006740ed4949d95b903a2f2f /bmp.c | |
| parent | c8d863b4b37a64f1df3cd4c25e6367949f2e6650 (diff) | |
| download | astar-f0b6bb6974c823c4b5a7deffce0748f2ff6370de.tar.xz | |
Change how messages are written, clean up differently
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; } |
