projects
/
super-star-trek.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Avoid an infinite loop on some skips.
[super-star-trek.git]
/
io.c
diff --git
a/io.c
b/io.c
index 8b766e9876be9a51ed8e633d4a4d8b360574c2f0..d67c23276c78a4af375b0e78d67eee45b8fa6a79 100644
(file)
--- a/
io.c
+++ b/
io.c
@@
-59,11
+59,7
@@
void iostart(int usecurses) {
if(signal(SIGQUIT,SIG_IGN) != SIG_IGN)
(void)signal(SIGQUIT,fastexit);
if(signal(SIGQUIT,SIG_IGN) != SIG_IGN)
(void)signal(SIGQUIT,fastexit);
-#ifndef SERGEEV
- if (curses = usecurses) {
-#else /* SERGEEV */
if ((curses = usecurses)) {
if ((curses = usecurses)) {
-#endif /* SERGEEV */
(void)initscr();
#ifdef KEY_MIN
keypad(stdscr, TRUE);
(void)initscr();
#ifdef KEY_MIN
keypad(stdscr, TRUE);
@@
-134,7
+130,7
@@
void pause_game(int i) {
wrefresh(stdscr);
} else {
putchar('\n');
wrefresh(stdscr);
} else {
putchar('\n');
- prout(prompt);
+ prout
n
(prompt);
fgets(buf, sizeof(buf), stdin);
if (i != 0) {
clearscreen();
fgets(buf, sizeof(buf), stdin);
if (i != 0) {
clearscreen();