Make budget's "Sector building" line look better

Number of sectors were not aligned with the other lines.  While there,
print properly plurized "sector" instead of "sct(s)".
This commit is contained in:
Markus Armbruster 2009-02-20 19:47:28 +01:00
parent 44c36fa7d5
commit 1d1e789782
2 changed files with 5 additions and 3 deletions

View file

@ -21,7 +21,7 @@ Ship building 2 ships 480
Ship maintenance 25 ships 6327 Ship maintenance 25 ships 6327
Plane building 9 planes 2508 Plane building 9 planes 2508
Plane maintenance 219 planes 8874 Plane maintenance 219 planes 8874
Sector building 2398 Sector building 25 sectors 2398
Sector maintenance 5 sectors 300 Sector maintenance 5 sectors 300
Military payroll 7648 mil, 338 res 38247 Military payroll 7648 mil, 338 res 38247
Total expenses....................................................147490 Total expenses....................................................147490

View file

@ -133,8 +133,10 @@ budg(void)
} }
if (p_sect[SCT_EFFIC][1]) { if (p_sect[SCT_EFFIC][1]) {
pr("Sector building\t\t\t\t%8ld sct(s)\t\t%8ld\n", sprintf(buf, "%ld sector%s",
p_sect[SCT_EFFIC][0], p_sect[SCT_EFFIC][1]); p_sect[SCT_EFFIC][0], splur(p_sect[SCT_EFFIC][0]));
pr("Sector building\t\t\t%-16s\t\t%8ld\n",
buf, p_sect[SCT_EFFIC][1]);
expenses += p_sect[SCT_EFFIC][1]; expenses += p_sect[SCT_EFFIC][1];
} }
if (p_sect[SCT_MAINT][0]) { if (p_sect[SCT_MAINT][0]) {