Fixes brace style (#248)

This commit is contained in:
Kamron Batman 2020-09-13 21:49:46 -07:00 committed by GitHub
parent a236617ad9
commit 8149620b0c
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
1503 changed files with 28575 additions and 1717 deletions

View file

@ -20,17 +20,23 @@ namespace Server
Goal = goal;
if (map == null || map == Map.Internal)
{
return;
}
if (Utility.InRange(start, goal, 1))
{
return;
}
try
{
var alg = OverrideAlgorithm ?? FastAStarAlgorithm.Instance;
if (alg?.CheckCondition(m, map, start, goal) == true)
{
Directions = alg.Find(m, map, start, goal);
}
}
catch (Exception e)
{
@ -94,7 +100,9 @@ namespace Server
public static void Path_OnTarget(Mobile from, object targeted)
{
if (!(targeted is IPoint3D p))
{
return;
}
SpellHelper.GetSurfaceTop(ref p);