Fix show sect b not to omit undesignatable sectors
show sect b needs to explain any sector players can build. show_sect_build() omitted sectors players can't designate. That's wrong, because players can certainly own and thus build sectors they can't designate. Test for infinite mobility cost instead, like show_sect_stats().
This commit is contained in:
parent
9ff6314a0e
commit
be6d7ca913
1 changed files with 7 additions and 7 deletions
|
@ -464,14 +464,14 @@ show_sect_build(int foo)
|
|||
for (i = 0; dchr[i].d_name; i++) {
|
||||
if (dchr[i].d_mnem == 0)
|
||||
continue;
|
||||
if (dchr[i].d_cost < 0)
|
||||
if (dchr[i].d_mob0 < 0)
|
||||
continue;
|
||||
if ((dchr[i].d_cost > 0) || (dchr[i].d_build != 1) ||
|
||||
(dchr[i].d_lcms > 0) || (dchr[i].d_hcms > 0)) {
|
||||
pr("%-14c %-14d %-17d %-14d %d\n",
|
||||
dchr[i].d_mnem, dchr[i].d_cost, dchr[i].d_build,
|
||||
dchr[i].d_lcms, dchr[i].d_hcms);
|
||||
}
|
||||
if (dchr[i].d_cost <= 0 && dchr[i].d_build == 1
|
||||
&& dchr[i].d_lcms == 0 && dchr[i].d_hcms == 0)
|
||||
continue; /* the usual, skip */
|
||||
pr("%-14c %-14d %-17d %-14d %d\n",
|
||||
dchr[i].d_mnem, dchr[i].d_cost, dchr[i].d_build,
|
||||
dchr[i].d_lcms, dchr[i].d_hcms);
|
||||
}
|
||||
pr("other 0 1 0 0\n");
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue