mirror of
https://github.com/EQEmu/Server.git
synced 2026-05-22 12:18:27 +00:00
Bunch of bug fixes, guard behavior works again
This commit is contained in:
@@ -163,6 +163,11 @@ float GetReciprocalHeading(const float heading)
|
||||
return result;
|
||||
}
|
||||
|
||||
bool IsHeadingEqual(const float h1, const float h2)
|
||||
{
|
||||
return std::abs(h2 - h1) < 0.01f;
|
||||
}
|
||||
|
||||
bool IsPositionEqual(const glm::vec2 &p1, const glm::vec2 &p2)
|
||||
{
|
||||
return std::abs(p1.x - p2.x) < position_eps && std::abs(p1.y - p2.y) < position_eps;
|
||||
|
||||
Reference in New Issue
Block a user