X-Git-Url: https://jxself.org/git/?p=super-star-trek.git;a=blobdiff_plain;f=src%2Fio.c;h=5d4ea9a13154752c0ed904fc55f3116ee41fb936;hp=7b4855f6c88048b78890a477733ae6757018bf96;hb=fd5a1ba781a0c37fa6181aa8e856d77d321df7a5;hpb=459d6afcbe13be588b29c8bd1fbffb39b13fdee1 diff --git a/src/io.c b/src/io.c index 7b4855f..5d4ea9a 100644 --- a/src/io.c +++ b/src/io.c @@ -38,13 +38,13 @@ void iostart(void) textdomain(PACKAGE); gettext(""); + if (atexit(outro)){ + fprintf(stderr,"Unable to register outro(), exiting...\n"); + exit(1); + } if (!(game.options & OPTION_CURSES)) { rows = atoi(getenv("LINES")); } else { - if (atexit(outro)){ - fprintf(stderr,"Unable to register outro(), exiting...\n"); - exit(1); - } (void)initscr(); #ifdef KEY_MIN keypad(stdscr, TRUE);