Fixes more casting and other formatting issues.

This commit is contained in:
Kamron Batman 2018-08-19 10:14:40 +08:00
parent 03dd5f1926
commit 61937d9c97
67 changed files with 325 additions and 570 deletions

View file

@ -45,8 +45,8 @@ namespace Server
public Point3D GetGoalLocation()
{
if ( m_Goal is Item )
return ((Item)m_Goal).GetWorldLocation();
if ( m_Goal is Item item )
return item.GetWorldLocation();
return new Point3D( m_Goal );
}
@ -201,4 +201,4 @@ namespace Server
return Check( m_From.Location, goal, range );
}
}
}
}