(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.
This commit is contained in:
parent
67027e22d1
commit
ec28000e34
1 changed files with 1 additions and 1 deletions
|
@ -98,7 +98,7 @@ decl(void)
|
||||||
while (nxtitem(&ni, &nat)) {
|
while (nxtitem(&ni, &nat)) {
|
||||||
if (nat.nat_stat == STAT_UNUSED)
|
if (nat.nat_stat == STAT_UNUSED)
|
||||||
continue;
|
continue;
|
||||||
if (player->cnum == (natid)ni.cur)
|
if (who == (natid)ni.cur)
|
||||||
continue;
|
continue;
|
||||||
if (opt_HIDDEN) {
|
if (opt_HIDDEN) {
|
||||||
if (!player->god && !getcontact(natp, ni.cur)) {
|
if (!player->god && !getcontact(natp, ni.cur)) {
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue