X-Git-Url: https://plomlompom.com/repos/foo.html?a=blobdiff_plain;f=src%2Fclient%2Fcleanup.c;h=bcf52ac405e0a31ab41c5df4f85ea1e38d432d45;hb=024b404c0db59dc6651b1c8f3d379c2797654fdf;hp=7df98e7c4bd716ccc441ff2d263f317bf4df4a39;hpb=dd9d65ee727ac7e95801da0f8b5bae7009811802;p=plomrogue
diff --git a/src/client/cleanup.c b/src/client/cleanup.c
index 7df98e7..bcf52ac 100644
--- a/src/client/cleanup.c
+++ b/src/client/cleanup.c
@@ -1,11 +1,11 @@
/* src/client/cleanup.c */
#include "cleanup.h"
+#include /* for endwin() */
#include /* uint32_t */
#include /* free() */
#include "command_db.h" /* free_command_db() */
#include "misc.h" /* unload_interface_conf() */
-#include "windows.h" /* free_winmeta_and_endwin() */
#include "world.h" /* world global */
@@ -20,13 +20,13 @@ extern void cleanup()
free(world.map.cells);
free(world.log);
free(world.player_inventory);
- if (cleanup_flags & CLEANUP_INTERFACE)/* Must come pre ncurses cleanup, */
- { /* for by closing all windows it */
- unload_interface_conf(); /* relies on world.wmeta data freed */
- } /* by free_winmeta_and_endwin(). */
+ if (cleanup_flags & CLEANUP_INTERFACE)
+ {
+ unload_interface_conf();
+ }
if (cleanup_flags & CLEANUP_NCURSES)
{
- free_winmeta_and_endwin();
+ endwin();
}
if (cleanup_flags & CLEANUP_COMMANDS)
{