Get rid of FORTRANisms.
[super-star-trek.git] / io.c
diff --git a/io.c b/io.c
index 05dd489255287a20eb06bf386b1d5eaaf53c9b74..fc173f7182c0baac431cdb9363a5279f6447ed68 100644 (file)
--- a/io.c
+++ b/io.c
@@ -5,7 +5,6 @@
 #include <signal.h>
 #include <ctype.h>
 #include <stdarg.h>
-#include <time.h>
 
 #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);