increase number of neighbors in search.cpp
This commit is contained in:
parent
19ab754914
commit
e7d6609981
|
@ -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…
Reference in New Issue