reject: Replace getrejects() by nat_accepts()
All callers of getrejects() also check whether the sender is a deity. Factor out the common code into nat_accepts(), and drop getrejects(). Signed-off-by: Markus Armbruster <armbru@pond.sub.org>
This commit is contained in:
parent
5983fa2f6c
commit
9d153f547c
8 changed files with 12 additions and 16 deletions
|
@ -88,7 +88,7 @@ setrel(natid us, natid them, int rel)
|
|||
pr("%s\n", addendum);
|
||||
mpr(us, "Diplomatic relations with %s %s to \"%s\".\n",
|
||||
cname(them), whichway, relates[rel]);
|
||||
if (mynp->nat_stat == STAT_GOD || !(getrejects(us, themnp) & REJ_TELE))
|
||||
if (nat_accepts(themnp, us, REJ_TELE))
|
||||
mpr(them,
|
||||
"Country %s has %s their relations with you to \"%s\"!\n",
|
||||
prnat(mynp), whichway, relates[rel]);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue