X-Git-Url: https://jxself.org/git/?p=super-star-trek.git;a=blobdiff_plain;f=src%2Fio.c;h=fa028f52933078a621d985bbbac65c2fa3cea186;hp=4571db2c3821d9ba6875705c9d6c8dec14b1e51c;hb=4d9c5a57b2a16c3c4bc54ab3f897f79101337eb5;hpb=05845f1a048926f08b0df44ed8c729a8797a2d85 diff --git a/src/io.c b/src/io.c index 4571db2..fa028f5 100644 --- a/src/io.c +++ b/src/io.c @@ -86,16 +86,13 @@ void waitfor(void) /* wait for user action -- OK to do nothing if on a TTY */ { if (game.options & OPTION_CURSES) - getch(); + wgetch(prompt_window); } void announce(void) { skip(1); - if (game.skill > SKILL_FAIR) - prouts(_("[ANOUNCEMENT ARRIVING...]")); - else - prouts(_("[IMPORTANT ANNOUNCEMENT ARRIVING -- PRESS ENTER TO CONTINUE]")); + prouts(_("[ANNOUNCEMENT ARRIVING...]")); skip(1); } @@ -212,12 +209,12 @@ void cgetline(char *line, int max) wrefresh(curwnd); } else { if (replayfp && !feof(replayfp)) - fgets(line, max, replayfp); + (void)fgets(line, max, replayfp); else - fgets(line, max, stdin); + (void)fgets(line, max, stdin); } if (logfp) - fputs(line, logfp); + (void)fputs(line, logfp); line[strlen(line)-1] = '\0'; } @@ -393,7 +390,7 @@ void warble(void) void tracktorpedo(coord w, int l, int i, int n, int iquad) /* torpedo-track animation */ { - if (!game.options & OPTION_CURSES) { + if (!(game.options & OPTION_CURSES)) { if (l == 1) { if (n != 1) { skip(1);