Incorporate BSD-Trek visual-scan code, just in case.
[super-star-trek.git] / src / sst.c
index 62ffe2547293718d4abf7dfdd80c7aa0d822c98e..0ae5598fda18feb55d90af6e39fc5e25ce446751 100644 (file)
--- a/src/sst.c
+++ b/src/sst.c
@@ -291,6 +291,10 @@ commands[] = {
        {"HELP",        HELP,           0},
 #define SEED   37
        {"SEED",        SEED,           0},
+#if BSD_BUG_FOR_BUG
+#define VISUAL 38
+       {"VISUAL",      VISUAL,         0},
+#endif
 };
 
 #define NUMCOMMANDS    sizeof(commands)/sizeof(commands[0])
@@ -468,8 +472,8 @@ static void makemoves(void)
        case SHIELDS:                   // shields
            doshield(false);
            if (game.ididit) {
-               hitme=true;
-               game.shldchg = 0;
+               hitme = true;
+               game.shldchg = false;
            }
            break;
        case DOCK:                      // dock
@@ -572,6 +576,11 @@ static void makemoves(void)
            if (key == IHREAL)
                seed = (int)aaitem;
            break;
+#if BSD_BUG_FOR_BUG
+       case VISUAL:
+           visual();                   // perform visual scan
+           break;
+#endif
        }
        commandhook(commands[i].name, false);
        for (;;) {