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
|
@ -78,7 +78,7 @@ do_loan(void)
|
|||
return RET_FAIL;
|
||||
}
|
||||
natp = getnatp(recipient);
|
||||
if (!player->god && (getrejects(player->cnum, natp) & REJ_LOAN)) {
|
||||
if (!nat_accepts(natp, player->cnum, REJ_LOAN)) {
|
||||
pr("%s is rejecting your loans.\n", cname(recipient));
|
||||
return RET_SYN;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue