From: Markus Armbruster Date: Fri, 18 Feb 2011 18:29:29 +0000 (+0100) Subject: Make bestpath work for deities in foreign land X-Git-Tag: v4.3.27~109 X-Git-Url: http://git.pond.sub.org/?p=empserver;a=commitdiff_plain;h=5962195e9a39b75993e8bf298f15819ce73b0621 Make bestpath work for deities in foreign land Before, it only worked in land owned by the deity. As always, paths can't cross international borders. --- diff --git a/src/lib/commands/best.c b/src/lib/commands/best.c index d989a14cf..a72837132 100644 --- a/src/lib/commands/best.c +++ b/src/lib/commands/best.c @@ -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)