diff options
Diffstat (limited to 'src/dijkstra.cpp')
-rw-r--r-- | src/dijkstra.cpp | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/src/dijkstra.cpp b/src/dijkstra.cpp index d5ad2842..92bfeffb 100644 --- a/src/dijkstra.cpp +++ b/src/dijkstra.cpp @@ -2,7 +2,6 @@ #include "compat/format.hpp" #include "object.hpp" #include "point.hpp" -#include "compat/math.hpp" #include <cstdio> #include <Corrade/Containers/StaticArray.h> #include <Magnum/Math/Vector2.h> @@ -87,7 +86,7 @@ inline uint32_t distance(point a, point b) Vector2i dist; dist += (a.coord() - b.coord())*iTILE_SIZE2; dist += Vector2i(a.offset()) - Vector2i(b.offset()); - return (uint32_t)Math::ceil(Math::sqrt(dist.dot())); + return (uint32_t)Math::ceil(Math::sqrt(Vector2(dist).dot())); } inline uint32_t distance_l2(point a, point b) |