From ec28000e34d8c1a6af8f4819a1bb4d154e6e5015 Mon Sep 17 00:00:00 2001 From: Ron Koenderink Date: Wed, 3 Jan 2007 12:54:41 +0000 Subject: [PATCH] (decl): Prevent the deity from changing relations for a player to self. Closes #1384998. Allow the deity to set the relations of a player towards the deity. --- src/lib/commands/decl.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/lib/commands/decl.c b/src/lib/commands/decl.c index 20e1e085..51bf6850 100644 --- a/src/lib/commands/decl.c +++ b/src/lib/commands/decl.c @@ -98,7 +98,7 @@ decl(void) while (nxtitem(&ni, &nat)) { if (nat.nat_stat == STAT_UNUSED) continue; - if (player->cnum == (natid)ni.cur) + if (who == (natid)ni.cur) continue; if (opt_HIDDEN) { if (!player->god && !getcontact(natp, ni.cur)) {