Fix wire not to clear pending telegrams with toggle inform on

Broken since Empire 2 introduced toggle inform.
This commit is contained in:
Markus Armbruster 2011-11-21 07:26:02 +01:00
parent b98a806d82
commit a0e91cbc5e

View file

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