(coun_list, repo_list, nati): Replace in-flux determination code with influx().
(influx): New.
This commit is contained in:
parent
d1e2d91961
commit
5ffef496ea
5 changed files with 19 additions and 13 deletions
|
@ -68,7 +68,6 @@ static void
|
|||
coun_list(struct natstr *natp)
|
||||
{
|
||||
char *status;
|
||||
struct sctstr sect;
|
||||
natid cn = natp->nat_cnum;
|
||||
|
||||
pr("%3d ", cn);
|
||||
|
@ -102,9 +101,7 @@ coun_list(struct natstr *natp)
|
|||
else if (natp->nat_stat & STAT_NORM) {
|
||||
status = "Active";
|
||||
if (!opt_HIDDEN || player->god) {
|
||||
getsect(natp->nat_xcap, natp->nat_ycap, §);
|
||||
if (sect.sct_own != cn ||
|
||||
(sect.sct_type != SCT_CAPIT && sect.sct_type != SCT_MOUNT))
|
||||
if (influx(natp))
|
||||
status = "In flux";
|
||||
else if (natp->nat_money < 0)
|
||||
status = "Broke";
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue