Fix wire not to clear pending telegrams with toggle inform on
authorMarkus Armbruster <armbru@pond.sub.org>
Mon, 21 Nov 2011 06:26:02 +0000 (07:26 +0100)
committerMarkus Armbruster <armbru@pond.sub.org>
Thu, 29 Dec 2011 10:47:07 +0000 (11:47 +0100)
Broken since Empire 2 introduced toggle inform.

src/lib/commands/rea.c

index f30109b7f4dbec46811737c60265d1289c20c476..962abd8f7ea70e061040134be705372deabe2521 100644 (file)
@@ -174,10 +174,12 @@ rea(void)
            pr("No %ss for %s at the moment...\n", kind, cname(num));
     }
     (void)fclose(telfp);
-    if (np->nat_flags & NF_INFORM) {
-       pr_inform(player, "\n");
-       np->nat_tgms = 0;
-       putnat(np);
+    if (*kind != 'a') {
+       if (np->nat_flags & NF_INFORM) {
+           pr_inform(player, "\n");
+           np->nat_tgms = 0;
+           putnat(np);
+       }
     }
     return RET_OK;
 }