offer: Exempt all deities from reject, not just POGO
Fix do_loan() to check !player->god instead of player->cnum != 0. Screwed up when rejecting was added in Merc Empire. Should not normally matter, because the reject command doesn't let you reject deities. Signed-off-by: Markus Armbruster <armbru@pond.sub.org>
This commit is contained in:
parent
8a129dee20
commit
5da4f700b7
1 changed files with 2 additions and 1 deletions
|
@ -29,6 +29,7 @@
|
||||||
* Known contributors to this file:
|
* Known contributors to this file:
|
||||||
* Pat Loney, 1992
|
* Pat Loney, 1992
|
||||||
* Steve McClure, 1996
|
* Steve McClure, 1996
|
||||||
|
* Markus Armbruster, 2005-2016
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#include <config.h>
|
#include <config.h>
|
||||||
|
@ -77,7 +78,7 @@ do_loan(void)
|
||||||
return RET_FAIL;
|
return RET_FAIL;
|
||||||
}
|
}
|
||||||
natp = getnatp(recipient);
|
natp = getnatp(recipient);
|
||||||
if (player->cnum && (getrejects(player->cnum, natp) & REJ_LOAN)) {
|
if (!player->god && (getrejects(player->cnum, natp) & REJ_LOAN)) {
|
||||||
pr("%s is rejecting your loans.\n", cname(recipient));
|
pr("%s is rejecting your loans.\n", cname(recipient));
|
||||||
return RET_SYN;
|
return RET_SYN;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue