X-Git-Url: http://git.pond.sub.org/?p=empserver;a=blobdiff_plain;f=src%2Flib%2Fcommands%2Fsinf.c;h=6977a10ece3b893f9ece447228277a680ce8e04e;hp=f98a4a30ea1238480092fc4e2c7f0c1f32292c55;hb=9b7adfbe;hpb=5f263a7753dc728809ff85c993af975f6c76e61e diff --git a/src/lib/commands/sinf.c b/src/lib/commands/sinf.c index f98a4a30e..6977a10ec 100644 --- a/src/lib/commands/sinf.c +++ b/src/lib/commands/sinf.c @@ -46,12 +46,12 @@ int sinfra(void) { - struct sctstr sect; - int nsect; - struct nstr_sect nstr; - double sector_mcost(); - double sector_strength(struct sctstr *); - + struct sctstr sect; + int nsect; + struct nstr_sect nstr; + double sector_mcost(); + double sector_strength(struct sctstr *); + if (!snxtsct(&nstr, player->argp[1])) return RET_SYN; prdate(); @@ -81,7 +81,7 @@ sinfra(void) pr("%4d%% ", sect.sct_rail); pr("%4.3f ", sector_mcost(§, MOB_RAIL)); pr("%4d%% ", sect.sct_defense); - pr("%5.2f\n", sector_strength(§)); + pr("%5.2f\n", sector_strength(§)); } if (nsect == 0) { if (player->argp[1]) @@ -89,9 +89,7 @@ sinfra(void) else pr("%s: No sector(s)\n", ""); return RET_FAIL; - }else + } else pr("%d sector%s\n", nsect, splur(nsect)); return 0; } - -