projects
/
super-star-trek.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
3ee4e79
)
Fix the scroll-pausing code.
author
Stas Sergeev
<stsp@aknet.ru>
Thu, 28 Apr 2005 16:15:32 +0000
(16:15 +0000)
committer
Stas Sergeev
<stsp@aknet.ru>
Thu, 28 Apr 2005 16:15:32 +0000
(16:15 +0000)
io.c
patch
|
blob
|
history
diff --git
a/io.c
b/io.c
index 418152969d23cfedcbee5771ab242b293af3ce17..8698ab8ec9b68ab23e379a626deb566954f796de 100644
(file)
--- 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)