X-Git-Url: https://jxself.org/git/?a=blobdiff_plain;f=io.c;h=8698ab8ec9b68ab23e379a626deb566954f796de;hb=358ff1de0e2424e1e9a9e4559372ea1efa10c53b;hp=418152969d23cfedcbee5771ab242b293af3ce17;hpb=5713361f64d054a03c2c8b49493ac8e601fe94a7;p=super-star-trek.git diff --git a/io.c b/io.c index 4181529..8698ab8 100644 --- a/io.c +++ b/io.c @@ -121,10 +121,14 @@ void skip(int i) { while (i-- > 0) { if (game.options & OPTION_CURSES) { - if (curwnd == message_window && getcury(curwnd) == getmaxy(curwnd)) + if (curwnd == message_window && linecount >= getmaxy(curwnd) - 3) { pause_game(0); - else + clrscr(); + } else { proutn("\n"); + if (curwnd == message_window) + linecount++; + } } else { linecount++; if (linecount >= rows) @@ -221,6 +225,7 @@ void clrscr (void) wmove(curwnd,0,0); wrefresh(curwnd); } + linecount = 0; } void textcolor (int color)