From d055dbecb88324bc6eaa4326e96a022d73ab28ed Mon Sep 17 00:00:00 2001 From: Markus Armbruster Date: Sat, 22 Oct 2016 17:16:49 +0200 Subject: [PATCH] edit: Don't show contact information Interactive edit shows what can be edited, with edit keys and current values. When option HIDDEN is enabled, "edit c" additionally shows contact information like "Countries contacted: 1(6) 2(6) 4(5) ". Lists the numbers of contacted countries and, in parenthesis, how many updates contact is going to last if option LOSE_CONTACT is enabled. The line was added along with option HIDDEN in Empire 2. As long as editing contact isn't implemented, it doesn't belong here. Drop it. If deities need contact information, we'll have to show it elsewhere. Signed-off-by: Markus Armbruster --- src/lib/commands/edit.c | 10 ---------- 1 file changed, 10 deletions(-) diff --git a/src/lib/commands/edit.c b/src/lib/commands/edit.c index 995c0fa4..3670c462 100644 --- a/src/lib/commands/edit.c +++ b/src/lib/commands/edit.c @@ -226,8 +226,6 @@ print_sect(struct sctstr *sect) static void print_nat(struct natstr *np) { - int i; - pr("Country #: %2d\n", np->nat_cnum); pr("Name : %-20s\t", np->nat_cnam); pr("Representative : %s\n", np->nat_pnam); @@ -245,14 +243,6 @@ print_nat(struct natstr *np) pr("Happiness : %.2f\n", np->nat_level[NAT_HLEV]); pr("Money : $%6d\n", np->nat_money); pr("Telegrams : %6d\n", np->nat_tgms); - if (opt_HIDDEN) { - pr("Countries contacted: "); - for (i = 0; i < MAXNOC; i++) { - if (getcontact(np, i)) - pr("%d(%d) ", i, getcontact(np, i)); - } - pr("\n"); - } } static void