Make sure this builds with -DSERGEEV.
[super-star-trek.git] / sst.c
diff --git a/sst.c b/sst.c
index 07b7da5cef805bca47a59a279237eee70611f9c1..0f8aed65523ed7d25e1ce48ce5af7c18f8578eed 100644 (file)
--- a/sst.c
+++ b/sst.c
@@ -10,8 +10,6 @@
 #define SSTDOC "sst.doc"
 #endif
        
-static char line[128], *linep = line;
-
 /*
 
 Here are Tom Almy's changes:
@@ -94,6 +92,9 @@ Eric Raymond's changes:
 
    */
 
+/* the input queue */
+static char line[128], *linep = line;
+
 static struct 
 {
     char *name;
@@ -261,6 +262,10 @@ static void helpme(void) {
        fclose(fp);
 }
 
+void enqueue(char *s) {
+    strcpy(line, s);
+}
+
 static void makemoves(void) {
        int i, hitme;
         clrscr();
@@ -302,7 +307,7 @@ static void makemoves(void) {
                commandhook(commands[i].name, TRUE);
                switch (i) { /* command switch */
                         case SRSCAN:                 // srscan
-                               srscan(1);
+                               srscan(SRSCAN);
                                break;
                        case LRSCAN:                    // lrscan
                                lrscan();