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:
Markus Armbruster 2016-10-30 07:08:32 +01:00
parent 8a129dee20
commit 5da4f700b7

View file

@ -29,6 +29,7 @@
* Known contributors to this file:
* Pat Loney, 1992
* Steve McClure, 1996
* Markus Armbruster, 2005-2016
*/
#include <config.h>
@ -77,7 +78,7 @@ do_loan(void)
return RET_FAIL;
}
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));
return RET_SYN;
}