|
|
1.1 root 1: # include "trek.h"
2:
3: /**
4: ** long range scanners
5: **/
6:
7: lrscan()
8: {
9: register int i, j;
10:
11: if (Damage[LRSCAN])
12: {
13: if(Status.cond!=DOCKED) {
14: printf("Long range scanners inoperable.\n");
15: return;
16: } else
17: printf("L.R. scanners damaged; using Starbase scanners.\n");
18: }
19: printf(" ");
20: for (j = Quady-1; j <= Quady + 1; j++)
21: {
22: if (j < 0 || j >= NQUADS)
23: printf(" ");
24: else
25: printf(" -%1d-", j);
26: }
27: printf("\tLong range scan for quadrant %d,%d\n", Quadx, Quady);
28: for (i = Quadx - 1; i <= Quadx + 1; i++) {
29: if (i < 0 || i >= NQUADS) {
30: printf(" * * *");
31: } else {
32: printf("%1d", i);
33: for (j = Quady - 1; j <= Quady + 1; j++) {
34: if (j < 0 || j >= NQUADS) {
35: printf(" * ");
36: } else {
37: prsect(1,i,j);
38: }
39: }
40: }
41: printf("\n");
42: }
43: return;
44: }
This archive runs on limited infrastructure. Preserving old code on modern bandwidth. Automated agents are requested to crawl responsibly.