]> git.pond.sub.org Git - empserver/commitdiff
(repo_header, repo_list): HIDDEN used to suppress column status.
authorMarkus Armbruster <armbru@pond.sub.org>
Thu, 5 Jan 2006 15:36:49 +0000 (15:36 +0000)
committerMarkus Armbruster <armbru@pond.sub.org>
Thu, 5 Jan 2006 15:36:49 +0000 (15:36 +0000)
Don't; report status with less detail for HIDDEN instead, like the
country command.

info/Hidden.t
src/lib/commands/repo.c

index 5b923dc4732075a735bf87da83f014284f04f4d1..c8ca1b53ed24ddb4e8325635ba3ac2655292b30e 100644 (file)
@@ -10,7 +10,7 @@ country:   Discloses less detailed status of active countries.
 newspaper: Reports on contacted countries only, except for headlines.
 power:     Displays your own power only; other nations never show up.
 relations: Reports on contacted countries only.
-report:    Reports on contacted countries only, and no status.
+report:    Reports on contacted countries only, and less status.
 .FI
 .s1
 Commands to interact with other countries, like telegram, work only
index 37b98b53946c15346f597cce19300ac0a6fe70bb..3cd2f1cb016b901e538031ae20e4faaf70d01d6c 100644 (file)
@@ -112,12 +112,8 @@ repo_header(void)
     pr(" #    name                tech      research   education   happiness ");
     if (player->god)
        pr("capital\n");
-    else {
-       if (opt_HIDDEN)
-           pr("\n");
-       else
-           pr(" status\n");
-    }
+    else
+       pr(" status\n");
 }
 
 static void
@@ -138,16 +134,12 @@ repo_list(struct stats *stat, natid cn, struct natstr *natp)
        printdiff(stat->stat, stat->res, natp, NAT_RLEV);
        printdiff(stat->stat, stat->edu, natp, NAT_ELEV);
        printdiff(stat->stat, stat->hap, natp, NAT_HLEV);
-       if (opt_HIDDEN) {
-           pr("\n");
-       } else {
-           if (influx(natp))
-               pr("In flux\n");
-           else if (natp->nat_money <= 0)
-               pr("Broke\n");
-           else
-               pr("Active\n");
-       }
+       if (!opt_HIDDEN && influx(natp))
+           pr("In flux\n");
+       else if (!opt_HIDDEN && natp->nat_money <= 0)
+           pr("Broke\n");
+       else
+           pr("Active\n");
     }
 }