From: Stas Sergeev Date: Thu, 28 Apr 2005 16:15:32 +0000 (+0000) Subject: Fix the scroll-pausing code. X-Git-Tag: 2.0~310 X-Git-Url: https://jxself.org/git/?a=commitdiff_plain;h=a7adac76a19b708c004fac70b83100bf0cae816a;p=super-star-trek.git Fix the scroll-pausing code. --- 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)