Commit | Line | Data |
---|---|---|
520d5775 EA |
1 | # include "trek.h" |
2 | ||
3 | /** | |
4 | ** output hidden distress calls | |
5 | **/ | |
6 | ||
7 | dumpssradio() | |
8 | { | |
9 | register struct event *e; | |
10 | register int j; | |
11 | register int chkrest; | |
12 | ||
13 | chkrest = 0; | |
14 | for (j = 0; j < MAXEVENTS; j++) | |
15 | { | |
16 | e = &Event[j]; | |
17 | /* if it is not hidden, then just ignore it */ | |
18 | if ((e->evcode & E_HIDDEN) == 0) | |
19 | continue; | |
20 | if (e->evcode & E_GHOST) | |
21 | { | |
22 | unschedule(e); | |
23 | printf("Starsystem %s in quadrant %d,%d is no longer distressed\n", | |
24 | systemname(e), e->x, e->y); | |
25 | continue; | |
26 | } | |
27 | ||
28 | switch (e->evcode) | |
29 | { | |
30 | ||
31 | case E_KDESB: | |
32 | printf("Starbase in quadrant %d,%d is under attack\n", | |
33 | e->x, e->y); | |
34 | chkrest++; | |
35 | break; | |
36 | ||
37 | case E_ENSLV: | |
38 | case E_REPRO: | |
39 | printf("Starsystem %s in quadrant %d,%d is distressed\n", | |
40 | systemname(e), e->x, e->y); | |
41 | chkrest++; | |
42 | break; | |
43 | ||
44 | } | |
45 | } | |
46 | ||
47 | return (chkrest); | |
48 | } |