projects
/
super-star-trek.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Pull SERGEEV dependencies out of reports.c.
[super-star-trek.git]
/
sst.c
diff --git
a/sst.c
b/sst.c
index eb7c8f6cb4303edc7ab08b4b85bbf35c12332adf..346bb4c740c4a697ed76451183eadf6375f923b9 100644
(file)
--- a/
sst.c
+++ b/
sst.c
@@
-227,8
+227,11
@@
static void helpme(void) {
fp = fopen(SSTDOC, "r");
if (fp == NULL) {
prout("Spock- \"Captain, that information is missing from the");
fp = fopen(SSTDOC, "r");
if (fp == NULL) {
prout("Spock- \"Captain, that information is missing from the");
- prout(" computer. You need to find SST.DOC and put it in the");
- prout(" current directory.\"");
+ prout(" computer.\"");
+ /*
+ * This used to continue: "You need to find SST.DOC and put
+ * it in the current directory."
+ */
return;
}
for (;;) {
return;
}
for (;;) {
@@
-258,8
+261,9
@@
static void helpme(void) {
fclose(fp);
}
fclose(fp);
}
+void drawmaps(short l) {
+/* hook to be called after moving to redraw maps */
#ifdef SERGEEV
#ifdef SERGEEV
-void drawmaps(short l){
_setcursortype(_NOCURSOR);
if (l==1) sensor();
if (l!=2) setwnd(1);
_setcursortype(_NOCURSOR);
if (l==1) sensor();
if (l!=2) setwnd(1);
@@
-276,8
+280,8
@@
void drawmaps(short l){
lrscan();
_setcursortype(_NORMALCURSOR);
}
lrscan();
_setcursortype(_NORMALCURSOR);
}
-}
#endif /* SERGEEV */
#endif /* SERGEEV */
+}
static void makemoves(void) {
int i, hitme;
static void makemoves(void) {
int i, hitme;
@@
-286,9
+290,7
@@
static void makemoves(void) {
setwnd(4);
#endif /* SERGEEV */
while (TRUE) { /* command loop */
setwnd(4);
#endif /* SERGEEV */
while (TRUE) { /* command loop */
-#ifdef SERGEEV
drawmaps(1);
drawmaps(1);
-#endif /* SERGEEV */
while (TRUE) { /* get a command */
hitme = FALSE;
justin = 0;
while (TRUE) { /* get a command */
hitme = FALSE;
justin = 0;