projects
/
super-star-trek.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Oops -- this wasn't in the repo.
[super-star-trek.git]
/
sst.c
diff --git
a/sst.c
b/sst.c
index acef9841228ecf2f18b4f1b5568683a9b07bb210..59b0b3221f0cd6c442ee90a2a2c9689eb42ea991 100644
(file)
--- a/
sst.c
+++ b/
sst.c
@@
-502,14
+502,21
@@
int main(int argc, char **argv) {
}
}
}
}
+#ifndef SERGEEV
iostart(usecurses);
iostart(usecurses);
- prelim();
+#else
+ randomize();
+ textattr(7);
+ clrscr();
+ setwnd(0);
+#endif /* SERGEEV */
line[0] = '\0';
for (i = optind; i < argc; i++) {
strcat(line, argv[i]);
strcat(line, " ");
}
while (TRUE) { /* Play a game */
line[0] = '\0';
for (i = optind; i < argc; i++) {
strcat(line, argv[i]);
strcat(line, " ");
}
while (TRUE) { /* Play a game */
+ prelim();
setup(line[0] == '\0');
if (alldone) {
score();
setup(line[0] == '\0');
if (alldone) {
score();
@@
-639,6
+646,13
@@
int scan(void) {
return IHEOL;
}
getline(line, sizeof(line));
return IHEOL;
}
getline(line, sizeof(line));
+#ifdef SERGEEV
+ fflush(stdin);
+ if (curwnd==5){
+ clrscr();
+ setwnd(4);
+ clrscr();
+#endif /* SERGEEV */
linep = line;
}
// Skip leading white space
linep = line;
}
// Skip leading white space