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.
This commit is contained in:
parent
791ba26c5e
commit
5962195e9a
1 changed files with 2 additions and 2 deletions
|
@ -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)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue