edit &c: Suppress news for acts of god to gods

Option GODNEWS is documented to be about deities giving or taking
things from players.  Nevertheless, edit, give, setsector and
setresource report news of deities meddling with things owned by
deities other than POGO.  Don't.

Signed-off-by: Markus Armbruster <armbru@pond.sub.org>
This commit is contained in:
Markus Armbruster 2013-01-22 22:12:43 +01:00
parent bdf7cbce38
commit e507486fc1
4 changed files with 6 additions and 5 deletions

View file

@ -227,7 +227,7 @@ edit(void)
static void
benefit(natid who, int goodness)
{
if (opt_GODNEWS && who && goodness)
if (opt_GODNEWS && getnatp(who)->nat_stat != STAT_GOD && goodness)
nreport(player->cnum, goodness > 0 ? N_AIDS : N_HURTS, who, 1);
}