Core/Objects: removed unneeded combat reach calls from several distance helpers as they need another commit to be merged before
This commit is contained in:
1 parent
6cf2102c8f
commit
ac3e401c2f
1 file changed
+4
-4
@@ -1412,22 +1412,22 @@ bool WorldObject::IsInMap(const WorldObject* obj) const
|
||||
|
||||
bool WorldObject::IsWithinDist3d(float x, float y, float z, float dist) const
|
||||
{
|
||||
return IsInDist(x, y, z, dist + GetCombatReach());
|
||||
return IsInDist(x, y, z, dist);
|
||||
}
|
||||
|
||||
bool WorldObject::IsWithinDist3d(Position const* pos, float dist) const
|
||||
{
|
||||
return IsInDist(pos, dist + GetCombatReach());
|
||||
return IsInDist(pos, dist);
|
||||
}
|
||||
|
||||
bool WorldObject::IsWithinDist2d(float x, float y, float dist) const
|
||||
{
|
||||
return IsInDist2d(x, y, dist + GetCombatReach());
|
||||
return IsInDist2d(x, y, dist);
|
||||
}
|
||||
|
||||
bool WorldObject::IsWithinDist2d(Position const* pos, float dist) const
|
||||
{
|
||||
return IsInDist2d(pos, dist + GetCombatReach());
|
||||
return IsInDist2d(pos, dist);
|
||||
}
|
||||
|
||||
bool WorldObject::IsWithinDist(WorldObject const* obj, float dist2compare, bool is3D /*= true*/) const
|
||||
|
||||
Reference in new issue
Block a user