X-Git-Url: https://jxself.org/git/?p=super-star-trek.git;a=blobdiff_plain;f=src%2Freports.c;h=90b9faf8fc36b6f8753de7d4728bb8a8c6cfade2;hp=6120d02f40d6bb85828612b62c48b1b4ac8b1430;hb=c94108fede4723af905386473f6435467e96e630;hpb=2ea1ffb97cc0cdb13d8f4d42547a4e15245adfb2 diff --git a/src/reports.c b/src/reports.c index 6120d02..90b9faf 100644 --- a/src/reports.c +++ b/src/reports.c @@ -337,7 +337,7 @@ static void status(int req) } } -int srscan(int l) +void srscan(scantype type) /* short-range scan */ { /* the "sy" request is undocumented */ @@ -346,7 +346,7 @@ int srscan(int l) int i, j, jj, req=0; int goodScan=true, leftside=true, rightside=true, title=false; - switch (l) { + switch (type) { case SCAN_FULL: // SRSCAN if (damaged(DSRSENS)) { /* Allow base's sensors if docked */ @@ -381,7 +381,7 @@ int srscan(int l) prout(_("UNRECOGNIZED REQUEST. Legal requests are:")); prout(_(" date, condition, position, lsupport, warpfactor,")); prout(_(" energy, torpedoes, shields, klingons, time, system, bases.")); - return false; + return; } // no break case SCAN_STATUS: // STATUS @@ -405,11 +405,10 @@ int srscan(int l) if (rightside) status(jj); if (i