(cens, cens_hdr): Print the actual old_owner instead of just a star

when different.  This is change the format for the census output.
This commit is contained in:
Ron Koenderink 2005-11-15 23:44:38 +00:00
parent 94a0f81f24
commit 6b434ee376

View file

@ -90,7 +90,10 @@ cens(void)
pr(" %c", n == 0 ? '.' : '0' + (n / 100)); pr(" %c", n == 0 ? '.' : '0' + (n / 100));
n = sect.sct_dist[I_FOOD] % 1000; n = sect.sct_dist[I_FOOD] % 1000;
pr("%c ", n == 0 ? '.' : '0' + (n / 100)); pr("%c ", n == 0 ? '.' : '0' + (n / 100));
pr("%c", sect.sct_own != sect.sct_oldown ? '*' : ' '); if (sect.sct_own != sect.sct_oldown)
pr("%3d", sect.sct_oldown);
else
pr(" ");
pr("%5d", sect.sct_item[I_CIVIL]); pr("%5d", sect.sct_item[I_CIVIL]);
pr("%5d", sect.sct_item[I_MILIT]); pr("%5d", sect.sct_item[I_MILIT]);
@ -133,7 +136,7 @@ cens_hdr(void)
pr("own "); pr("own ");
pr(" sect eff "); pr(" sect eff ");
pr("prd "); pr("prd ");
pr("mob uf uf * civ mil uw food work avail "); pr("mob uf uf old civ mil uw food work avail ");
if (!player->god) if (!player->god)
pr("ter "); pr("ter ");
if (opt_FALLOUT) if (opt_FALLOUT)