X-Git-Url: https://jxself.org/git/?p=super-star-trek.git;a=blobdiff_plain;f=io.c;h=fc173f7182c0baac431cdb9363a5279f6447ed68;hp=05dd489255287a20eb06bf386b1d5eaaf53c9b74;hb=8b0a1880ee115e281afe83e1cd0c90e3306dfed8;hpb=5952a98d5a83ad6ed9dfe7821ed427504f280af1 diff --git a/io.c b/io.c index 05dd489..fc173f7 100644 --- a/io.c +++ b/io.c @@ -5,7 +5,6 @@ #include #include #include -#include #include "sst.h" #include "sstlinux.h" @@ -63,7 +62,7 @@ void iostart(int usecurses) report_window = newwin(10, 0, 1, 25); lrscan_window = newwin(10, 0, 0, 64); message_window = newwin(0, 0, 12, 0); - prompt_window = newwin(1, 0, LINES-1, 0); + prompt_window = newwin(1, 0, LINES-2, 0); scrollok(message_window, TRUE); setwnd(fullscreen_window); textcolor(DEFAULT); @@ -83,13 +82,13 @@ void pause_game(int i) char *prompt; char buf[BUFSIZ]; if (i==1) { - if (skill > 2) + if (skill > SKILL_FAIR) prompt = "[ANOUNCEMENT ARRIVING...]"; else prompt = "[IMPORTANT ANNOUNCEMENT ARRIVING -- PRESS ENTER TO CONTINUE]"; } else { - if (skill > 2) + if (skill > SKILL_FAIR) prompt = "[CONTINUE?]"; else prompt = "[PRESS ENTER TO CONTINUE]"; @@ -163,7 +162,6 @@ void prout(char *fmt, ...) void prouts(char *fmt, ...) /* print slowly! */ { - clock_t endTime; char *s, buf[BUFSIZ]; va_list ap; va_start(ap, fmt); @@ -171,8 +169,7 @@ void prouts(char *fmt, ...) va_end(ap); skip(1); for (s = buf; *s; s++) { - endTime = clock() + CLOCKS_PER_SEC*0.05; - while (clock() < endTime) continue; + delay(500); if (curses) { waddch(curwnd, *s); wrefresh(curwnd);