(show_sect_stats): Display mobility cost of inaccessible sectors as
`no way' instead of obscure magic numbers.
This commit is contained in:
parent
b3fc6413e0
commit
9ae594153f
1 changed files with 8 additions and 5 deletions
|
@ -535,13 +535,16 @@ show_sect_stats(int foo)
|
||||||
if (dchr[x].d_mnem == 0)
|
if (dchr[x].d_mnem == 0)
|
||||||
continue;
|
continue;
|
||||||
if (first) {
|
if (first) {
|
||||||
pr(" mob.cost max max -- packing bonus -- max\n");
|
pr(" mob cost max max -- packing bonus -- max\n");
|
||||||
pr(" sector type base min off def mil uw civ bar other pop\n");
|
pr(" sector type base eff off def mil uw civ bar other pop\n");
|
||||||
first = 0;
|
first = 0;
|
||||||
}
|
}
|
||||||
pr("%c %-23s %2d %2d %5.2f %5.2f %3d %3d %3d %3d %5d %5d\n",
|
pr("%c %-23s", dchr[x].d_mnem, dchr[x].d_name);
|
||||||
dchr[x].d_mnem, dchr[x].d_name,
|
if (dchr[x].d_mcst <= 0)
|
||||||
dchr[x].d_mcst, dchr[x].d_emcst,
|
pr(" no way");
|
||||||
|
else
|
||||||
|
pr(" %2d %2d", dchr[x].d_mcst, dchr[x].d_emcst);
|
||||||
|
pr(" %5.2f %5.2f %3d %3d %3d %3d %5d %5d\n",
|
||||||
dchr[x].d_ostr, dchr[x].d_dstr,
|
dchr[x].d_ostr, dchr[x].d_dstr,
|
||||||
ichr[I_MILIT].i_pkg[dchr[x].d_pkg],
|
ichr[I_MILIT].i_pkg[dchr[x].d_pkg],
|
||||||
ichr[I_UW].i_pkg[dchr[x].d_pkg],
|
ichr[I_UW].i_pkg[dchr[x].d_pkg],
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue