]> git.pond.sub.org Git - empserver/commitdiff
(decl): Prevent the deity from changing relations for a player to
authorRon Koenderink <rkoenderink@yahoo.ca>
Wed, 3 Jan 2007 12:54:41 +0000 (12:54 +0000)
committerRon Koenderink <rkoenderink@yahoo.ca>
Wed, 3 Jan 2007 12:54:41 +0000 (12:54 +0000)
self.  Closes #1384998.  Allow the deity to set the relations of a
player towards the deity.

src/lib/commands/decl.c

index 20e1e085e4ce5d1067e714e059c6d10941533216..51bf6850e3d7844f70ac86008f736d5297f3e034 100644 (file)
@@ -98,7 +98,7 @@ decl(void)
     while (nxtitem(&ni, &nat)) {
        if (nat.nat_stat == STAT_UNUSED)
            continue;
     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)) {
            continue;
        if (opt_HIDDEN) {
            if (!player->god && !getcontact(natp, ni.cur)) {