Fix a minor bug in -t mode display of the starchart.
[super-star-trek.git] / src / reports.c
index 665701e0abaa0d85a6b24f3487a9df9bc74bedd7..3a6b192a728d7a1de13ac2e01480d41bd1b4e67c 100644 (file)
@@ -227,6 +227,7 @@ void chart(int nn)
        proutn("  |");
        if (i<GALSIZE) skip(1);
     }
+    prout("");
 }
 
 static void sectscan(int goodScan, int i, int j) 
@@ -313,6 +314,16 @@ static void status(int req)
        proutn("Klingons Left %d", KLINGREM);
        break;
     case 10:
+       if (game.options & OPTION_WORLDS) {
+           planet *here = game.state.galaxy[game.quadx][game.quady].planet;
+           if (here && here->inhabited != UNINHABITED)
+               proutn("Major system  %s", systemname(here));
+           else
+               proutn("Sector is uninhabited");
+       }
+
+       break;
+    case 11:
        attakreport(1);
        break;
     }
@@ -320,8 +331,9 @@ static void status(int req)
                
 int srscan(int l) 
 {
+    /* the "sy" request is undocumented */
     static char requests[][3] =
-       {"","da","co","po","ls","wa","en","to","sh","kl","ti"};
+       {"","da","co","po","ls","wa","en","to","sh","kl","sy", "ti"};
     int leftside=TRUE, rightside=TRUE, i, j, jj, req=0, nn=FALSE;
     int goodScan=TRUE;
     switch (l) {
@@ -357,8 +369,8 @@ int srscan(int l)
                break;
        if (req > sizeof(requests)/sizeof(requests[0])) {
            prout("UNRECOGNIZED REQUEST. Legal requests are:");
-           prout("  date, game.condition, position, lsupport, game.warpfactor,");
-           prout("  energy, torpedoes, shields, klingons, time, bases.");
+           prout("  date, condition, position, lsupport, warpfactor,");
+           prout("  energy, torpedoes, shields, klingons, time, system, bases.");
            return FALSE;
        }
        // no break