]> git.pond.sub.org Git - empserver/blobdiff - src/lib/common/pathfind.c
Use the new path finder for land paths, drop old A*
[empserver] / src / lib / common / pathfind.c
index ae71b6478143549deae4c096952016d602bb072c..6536514d8eac99d6dfd41c427a1c611791d658ba 100644 (file)
@@ -452,6 +452,9 @@ bufrotate(char *buf, size_t bufsz, size_t i)
 static double
 cost_land(natid actor, int uid, int mobtype)
 {
+    /*
+     * Non-negative cost must not depend on ACTOR, see BestLandPath().
+     */
     struct sctstr *sp = (void *)empfile[EF_SECTOR].cache;
 
     if (sp[uid].sct_own != actor)