]> git.pond.sub.org Git - empserver/blobdiff - src/lib/commands/atta.c
Use relations_with() for getrel(getnatp(US), THEM) where US!=THEM
[empserver] / src / lib / commands / atta.c
index c993fd636c5951d14a7fe2d2a50de3c23dbea4a9..f7faa96e28860964d7ddef379cbcd3e29ffbe45c 100644 (file)
@@ -95,7 +95,7 @@ atta(void)
        newy = def->y + diroff[n + 1][1];
        getsect(newx, newy, &sect);     /* incase cross world boundary */
        if (!player->owner
-           && getrel(getnatp(sect.sct_own), player->cnum) != ALLIED)
+           && relations_with(sect.sct_own, player->cnum) != ALLIED)
            continue;
        att_combat_init(&off[++last], EF_SECTOR);
        off[last].x = sect.sct_x;