Added OPTION_SHOWME.
authorEric S. Raymond <esr@thyrsus.com>
Sat, 12 Feb 2005 04:47:57 +0000 (04:47 +0000)
committerEric S. Raymond <esr@thyrsus.com>
Sat, 12 Feb 2005 04:47:57 +0000 (04:47 +0000)
reports.c
sst.c
sst.h

index d4b1f63c4f4c40944a7e15f89b203102ddda1e0c..ed1a14420e049d0e167a7657fa9650fde64ba186 100644 (file)
--- a/reports.c
+++ b/reports.c
@@ -208,7 +208,10 @@ void chart(int nn)
        proutn("%d |", i);
        for_quadrants(j) {
            char buf[4];
-           proutn("  ");
+           if ((game.options & OPTION_SHOWME) && i == quady && j == quadx)
+               proutn("<");
+           else
+               proutn(" ");
            if (game.state.galaxy[i][j].supernova)
                strcpy(buf, "***");
            else if (!game.state.galaxy[i][j].charted && game.state.galaxy[i][j].starbase)
@@ -221,6 +224,10 @@ void chart(int nn)
                if (*cp == '0')
                    *cp = '.';
            proutn(buf);
+           if ((game.options & OPTION_SHOWME) && i == quady && j == quadx)
+               proutn(">");
+           else
+               proutn(" ");
        }
        proutn("  |");
        if (i<GALSIZE) proutn("\n\r");
@@ -293,7 +300,7 @@ static void status(int req)
        break;
     case 6:
        proutn("Energy        %.2f", energy);
-       if (icrystl)    /* ESR */
+       if (icrystl && (game.options & OPTION_SHOWME))  /* ESR */
            proutn(" (have crystals)");
        break;
     case 7:
diff --git a/sst.c b/sst.c
index 5fddb15ee24e25cafb1321041dce3eef7eaf8f6b..7f7bf89497356fbb4071b759907fa93b572c106c 100644 (file)
--- a/sst.c
+++ b/sst.c
@@ -510,7 +510,7 @@ int main(int argc, char **argv)
 
     game.options = OPTION_ALL &~ OPTION_IOMODES;
     if (getenv("TERM"))
-       game.options |= OPTION_CURSES;
+       game.options |= OPTION_CURSES | OPTION_SHOWME;
     else
        game.options |= OPTION_TTY;
 
diff --git a/sst.h b/sst.h
index cb20407d46c54ec4984c0daa9a06f72291b90631..dfc6dd22a02a88c4e8523db439ddd01da0114f5b 100644 (file)
--- a/sst.h
+++ b/sst.h
@@ -96,6 +96,7 @@ typedef struct {
 #define OPTION_THOLIAN 0x00000008      /* Tholians and their webs */
 #define OPTION_THINGY  0x00000010      /* Space Thingy can shoot back */
 #define OPTION_PROBE   0x00000020      /* deep-space probes */
+#define OPTION_SHOWME  0x00000040      /* bracket Enterprise in chart */
 
 /* Define devices */
 #define DSRSENS 0