diff --git a/Projects/Server/Maps/Map.ClientByDistanceEnumerator.cs b/Projects/Server/Maps/Map.ClientByDistanceEnumerator.cs index 6d324cbb3..18a443c61 100644 --- a/Projects/Server/Maps/Map.ClientByDistanceEnumerator.cs +++ b/Projects/Server/Maps/Map.ClientByDistanceEnumerator.cs @@ -50,11 +50,7 @@ public partial class Map } [MethodImpl(MethodImplOptions.AggressiveInlining)] - public ClientDistanceEnumerable GetClientsInBoundsByDistance(Rectangle2D bounds) => - GetClientsInBoundsByDistance(bounds, new Point2D(bounds.X + bounds.Width / 2, bounds.Y + bounds.Height / 2)); - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public ClientDistanceEnumerable GetClientsInBoundsByDistance(Rectangle2D bounds, bool makeBoundsInclusive) => + public ClientDistanceEnumerable GetClientsInBoundsByDistance(Rectangle2D bounds, bool makeBoundsInclusive = false) => GetClientsInBoundsByDistance(bounds, new Point2D(bounds.X + bounds.Width / 2, bounds.Y + bounds.Height / 2), makeBoundsInclusive); [MethodImpl(MethodImplOptions.AggressiveInlining)] diff --git a/Projects/Server/Maps/Map.ItemByDistanceEnumerator.cs b/Projects/Server/Maps/Map.ItemByDistanceEnumerator.cs index 698fe8b89..dd022e0c1 100644 --- a/Projects/Server/Maps/Map.ItemByDistanceEnumerator.cs +++ b/Projects/Server/Maps/Map.ItemByDistanceEnumerator.cs @@ -69,8 +69,8 @@ public partial class Map } [MethodImpl(MethodImplOptions.AggressiveInlining)] - public ItemDistanceEnumerable GetItemsInBoundsByDistance(Rectangle2D bounds) => - GetItemsInBoundsByDistance(bounds); + public ItemDistanceEnumerable GetItemsInBoundsByDistance(Rectangle2D bounds, bool makeBoundsInclusive = false) => + GetItemsInBoundsByDistance(bounds, makeBoundsInclusive); [MethodImpl(MethodImplOptions.AggressiveInlining)] public ItemDistanceEnumerable GetItemsInBoundsByDistance(Rectangle2D bounds, bool makeBoundsInclusive = false) diff --git a/Projects/Server/Maps/Map.MobileByDistanceEnumerator.cs b/Projects/Server/Maps/Map.MobileByDistanceEnumerator.cs index a8d42c693..d508cd8d0 100644 --- a/Projects/Server/Maps/Map.MobileByDistanceEnumerator.cs +++ b/Projects/Server/Maps/Map.MobileByDistanceEnumerator.cs @@ -69,8 +69,8 @@ public partial class Map } [MethodImpl(MethodImplOptions.AggressiveInlining)] - public MobileDistanceEnumerable GetMobilesInBoundsByDistance(Rectangle2D bounds) => - GetMobilesInBoundsByDistance(bounds); + public MobileDistanceEnumerable GetMobilesInBoundsByDistance(Rectangle2D bounds, bool makeBoundsInclusive = false) => + GetMobilesInBoundsByDistance(bounds, makeBoundsInclusive); [MethodImpl(MethodImplOptions.AggressiveInlining)] public MobileDistanceEnumerable GetMobilesInBoundsByDistance(Rectangle2D bounds, bool makeBoundsInclusive = false) where T : Mobile =>