X-Git-Url: https://jxself.org/git/?p=super-star-trek.git;a=blobdiff_plain;f=src%2Freports.c;h=aa642e49c1d6aaa47ede4dd42e30146522379940;hp=0948073b01a4d6a2e88bd7573184ed9d51012a94;hb=52265793501a00845a0d6108d1af6e50e3ece379;hpb=a0ab45afa68fbc41df45581addf497ccc8204263 diff --git a/src/reports.c b/src/reports.c index 0948073..aa642e4 100644 --- a/src/reports.c +++ b/src/reports.c @@ -313,6 +313,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 +330,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) { @@ -358,7 +369,7 @@ int srscan(int l) if (req > sizeof(requests)/sizeof(requests[0])) { prout("UNRECOGNIZED REQUEST. Legal requests are:"); prout(" date, condition, position, lsupport, warpfactor,"); - prout(" energy, torpedoes, shields, klingons, time, bases."); + prout(" energy, torpedoes, shields, klingons, time, system, bases."); return FALSE; } // no break