Browse Source

increase number of neighbors in search.cpp

master
Pavel 8 months ago
parent
commit
e7d6609981
  1. 4
      alrys/search.cpp

4
alrys/search.cpp

@ -99,9 +99,9 @@ void astar(int s, int d, int width, int size, int boat)
a = u % width;
b = u / width;
for(i = -30; i < 31; ++i)
for(i = -120; i < 121; ++i)
{
for(j = -30; j < 31; ++j)
for(j = -120; j < 121; ++j)
{
if(i == 0 && j == 0) continue;
n = a + i + (b + j) * width;

Loading…
Cancel
Save