(bestownedpath): Fix test of end sector for terrain string starting

with 'R'.  Broken in 4.2.2.  No such terrain strings occur.
This commit is contained in:
Markus Armbruster 2006-03-29 16:12:00 +00:00
parent 7f37ecb680
commit 8d68043668

View file

@ -164,7 +164,7 @@ bestownedpath(s_char *bpath,
return NULL; return NULL;
if (restr2 && (!owned_and_navigable(bigmap, x, y, terrain, own) || 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; return NULL;
for (i = 0; i < WORLD_X; i++) for (i = 0; i < WORLD_X; i++)