fix: Codegens boats (#1625)

This commit is contained in:
Kamron Batman 2023-12-02 15:55:38 -05:00 • committed by GitHub
parent b29a79ac2d
commit 3a0d4b171b
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
31 changed files with 1280 additions and 1676 deletions

View file

@ -3715,6 +3715,14 @@ public partial class Mobile : IHued, IComparable<Mobile>, ISpawnable, IObjectPro
return Math.Sqrt(xDelta * xDelta + yDelta * yDelta);
}
public double GetDistanceToSqrt(Point2D p)
{
var xDelta = m_Location.m_X - p.X;
var yDelta = m_Location.m_Y - p.Y;
return Math.Sqrt(xDelta * xDelta + yDelta * yDelta);
}
public double GetDistanceToSqrt(IPoint2D p)
{
var xDelta = m_Location.m_X - p.X;