Core/Misc: Misc fixes

This commit is contained in:
hondacrx
2018-03-21 23:43:28 -04:00
parent 9b2c85950b
commit caa3cfed24
4 changed files with 20 additions and 13 deletions
@@ -2568,14 +2568,6 @@ namespace Game.Entities
public virtual bool LoadFromDB(ulong guid, Map map) { return true; }
//Position
public bool HasInLine(WorldObject target, float width)
{
if (!HasInArc(MathFunctions.PI, target))
return false;
width += target.GetObjectSize();
float angle = GetRelativeAngle(target);
return Math.Abs(Math.Sin(angle)) * GetExactDist2d(target.GetPositionX(), target.GetPositionY()) < width;
}
public float GetDistanceZ(WorldObject obj)
{