mirror of
https://github.com/edubart/otclient.git
synced 2025-06-15 14:54:28 +02:00
Fix TPoint::distanceFrom() calling TPoint::getLength() instead of TPoint::length() (#1116)
This commit is contained in:
parent
72cc4b2fb0
commit
18dd9c2d2d
@ -77,7 +77,7 @@ public:
|
|||||||
T manhattanLength() const { return std::abs(x) + std::abs(y); }
|
T manhattanLength() const { return std::abs(x) + std::abs(y); }
|
||||||
|
|
||||||
float distanceFrom(const TPoint<T>& other) const {
|
float distanceFrom(const TPoint<T>& other) const {
|
||||||
return TPoint<T>(x - other.x, y - other.y).getLength();
|
return TPoint<T>(x - other.x, y - other.y).length();
|
||||||
}
|
}
|
||||||
|
|
||||||
T x, y;
|
T x, y;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user