]> git.pond.sub.org Git - empserver/commitdiff
(bestownedpath): Fix test of end sector for terrain string starting
authorMarkus Armbruster <armbru@pond.sub.org>
Wed, 29 Mar 2006 16:12:00 +0000 (16:12 +0000)
committerMarkus Armbruster <armbru@pond.sub.org>
Wed, 29 Mar 2006 16:12:00 +0000 (16:12 +0000)
with 'R'.  Broken in 4.2.2.  No such terrain strings occur.

src/lib/common/bestpath.c

index 67dc9999c22316dc05daf38c3d6b7b1012be90c2..66f188a24cc943d0f5adc4aa5ee55a24ebdfa1d9 100644 (file)
@@ -164,7 +164,7 @@ bestownedpath(s_char *bpath,
        return NULL;
 
     if (restr2 && (!owned_and_navigable(bigmap, x, y, terrain, own) ||
-                  !owned_and_navigable(bigmap, x, y, terrain, own)))
+                  !owned_and_navigable(bigmap, ex, ey, terrain, own)))
        return NULL;
 
     for (i = 0; i < WORLD_X; i++)