summaryrefslogtreecommitdiffhomepage
path: root/src
diff options
context:
space:
mode:
authorStanislaw Halik <sthalik@misaki.pl>2023-10-09 04:05:31 +0200
committerStanislaw Halik <sthalik@misaki.pl>2023-10-09 04:05:31 +0200
commit52c0ea7e5802dbbc05223d6b4493225ce6beb8ee (patch)
tree10a38a292d99d7d42f523dc5b2c4829b3e2911aa /src
parent1d41ae95a12fcd78decbcd2c3bda33eb087e8d1d (diff)
oops
Diagonal movement waas broken.
Diffstat (limited to 'src')
-rw-r--r--src/path-search.hpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/path-search.hpp b/src/path-search.hpp
index 2705b1f6..5e5c97e4 100644
--- a/src/path-search.hpp
+++ b/src/path-search.hpp
@@ -38,7 +38,7 @@ class path_search final
public:
static constexpr int div_factor = 4;
static constexpr auto div_size = iTILE_SIZE2 / div_factor;
- static constexpr auto min_size = div_size / 2;
+ static constexpr auto min_size = div_size * 2;
template<typename T> struct bbox { VectorTypeFor<2, T> min, max; };