We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent c3fb341 commit 193e97bCopy full SHA for 193e97b
src/search-astar.cpp
@@ -103,13 +103,13 @@ constexpr auto directions = []() constexpr
103
constexpr auto len2 = (uint32_t)(len1.length() + 1.f); // NOLINT
104
std::array<pair, 8> array = {{
105
{ { -1, -1 }, len2 },
106
- { { 1, 1 }, len2 },
107
- { { -1, 1 }, len2 },
+ { { 0, -1 }, len1.y() },
108
{ { 1, -1 }, len2 },
109
{ { -1, 0 }, len1.x() },
110
- { { 0, -1 }, len1.y() },
111
{ { 1, 0 }, len1.x() },
+ { { -1, 1 }, len2 },
112
{ { 0, 1 }, len1.y() },
+ { { 1, 1 }, len2 },
113
}};
114
for (auto& [vec, len] : array)
115
vec *= div_size;
0 commit comments