]> git.pond.sub.org Git - empserver/blobdiff - src/lib/subs/show.c
config: Add sect-chr flags, replace cost by flag "deity"
[empserver] / src / lib / subs / show.c
index ec73193e7791feef0165612181485218cdcd4382..29d50a2da74d868575a19a1ded19c843084ac8f5 100644 (file)
@@ -466,14 +466,20 @@ show_sect_capab(int foo)
 {
     int i;
 
-    pr("  sector type             product  p.e.\n");
+    pr("  sector type             product  p.e.  capabilities\n");
 
     for (i = 0; dchr[i].d_name; i++) {
-       if (dchr[i].d_mnem == 0 || dchr[i].d_prd < 0)
+       if (dchr[i].d_mnem == 0 || (dchr[i].d_prd < 0 && !dchr[i].d_flags))
            continue;
-       pr("%c %-23s %-7s %4d%%\n",
-          dchr[i].d_mnem, dchr[i].d_name, pchr[dchr[i].d_prd].p_sname,
-          dchr[i].d_peffic);
+       pr("%c %-23s ",
+          dchr[i].d_mnem, dchr[i].d_name);
+       if (dchr[i].d_prd >= 0)
+           pr("%-7s %4d%% ",
+              pchr[dchr[i].d_prd].p_sname, dchr[i].d_peffic);
+       else
+           pr("              ");
+       show_capab(dchr[i].d_flags, sect_chr_flags);
+       pr("\n");
     }
 }