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 /main.c | |
| parent | c8d863b4b37a64f1df3cd4c25e6367949f2e6650 (diff) | |
| download | astar-f0b6bb6974c823c4b5a7deffce0748f2ff6370de.tar.xz | |
Change how messages are written, clean up differently
Diffstat (limited to 'main.c')
| -rw-r--r-- | main.c | 7 |
1 files changed, 4 insertions, 3 deletions
@@ -192,10 +192,10 @@ int main(int argc, char **argv) { case 'i': if(is_maze) { switch (c) { - case 'y': if (mwidth > 1) mwidth -= 1; break; + case 'y': if (mwidth > 2) mwidth -= 1; break; case 'o': mwidth += 1; break; case 'u': mheight += 1; break; - case 'i': if (mheight > 1) mheight -= 1; break; + case 'i': if (mheight > 2) mheight -= 1; break; } map_free(map, height); visited_free(visited, height); @@ -216,7 +216,8 @@ int main(int argc, char **argv) { curs_set(2); /* Show the cursor */ echo(); /* Echo characters */ - message(height, FILENAME_PROMPT); + set_message(FILENAME_PROMPT); + print_message(height); char filename[FILENAME_BUF_SIZE] = "out.bmp"; mvgetnstr(height + map_offset_y + 1, map_offset_x - 2 + sizeof(FILENAME_PROMPT), filename, FILENAME_BUF_SIZE - 1); |
