]> git.pond.sub.org Git - empserver/blobdiff - src/lib/commands/best.c
Make bestpath work for deities in foreign land
[empserver] / src / lib / commands / best.c
index d989a14cf229b85db78a839a10e85ffc4e69f039..a72837132e605bcf0331a5f319ae43df00a88784 100644 (file)
@@ -52,11 +52,11 @@ best(void)
        return RET_SYN;
 
     while (!player->aborted && nxtsct(&nstr, &s1)) {
-       if (s1.sct_own != player->cnum)
+       if (!player->owner)
            continue;
        snxtsct_rewind(&nstr2);
        while (!player->aborted && nxtsct(&nstr2, &s2)) {
-           if (s2.sct_own != player->cnum)
+           if (!player->owner)
                continue;
            path = BestLandPath(buf, &s1, &s2, &cost, MOB_MOVE);
            if (path)