X-Git-Url: https://plomlompom.com/repos/?a=blobdiff_plain;f=src%2Fmisc.c;h=0bb50a76fa4c7831ccfece4f41bab471c30b46ae;hb=7bebc9943d1648d56968146b17c9459affb183c6;hp=6aeb8b45303a229b120593848a5a8ebd5c9c3241;hpb=c7cdbe6260e5cd6a8efe2c73a02c9635b67ec4b7;p=plomrogue diff --git a/src/misc.c b/src/misc.c index 6aeb8b4..0bb50a7 100644 --- a/src/misc.c +++ b/src/misc.c @@ -1,9 +1,8 @@ /* misc.c */ #include "misc.h" -#include /* for exit(), EXIT_SUCCESS define, calloc(), free() */ +#include /* for calloc(), free() */ #include /* for strlen(), strcmp(), memcpy() */ -#include /* for endwin() */ #include "windows.h" /* for suspend_win(), append_win(), reset_pad_offset(), * resize_active_win(), cycle_active_win(), * shift_active_win(), struct Win, struct WinMeta @@ -22,23 +21,6 @@ -extern void exit_game(struct World * world, struct Map * map) -{ - endwin(); - free(map->cells); - uint16_t key; - for (key = 0; key <= world->keyswindata->max; key++) - { - free(world->keybindings[key].name); - } - free(world->keybindings); - free(world->keyswindata); - free(world->log); - exit (EXIT_SUCCESS); -} - - - extern void textfile_sizes(FILE * file, uint16_t * linemax_p, uint16_t * n_lines_p) {