Fixes brace style (#248)
This commit is contained in:
parent
a236617ad9
commit
8149620b0c
1503 changed files with 28575 additions and 1717 deletions
|
|
@ -34,18 +34,26 @@ namespace Server.Commands.Generic
|
|||
var ext = Extensions.Parse(from, ref args);
|
||||
|
||||
if (!CheckObjectTypes(from, command, ext, out var items, out var mobiles))
|
||||
{
|
||||
return;
|
||||
}
|
||||
|
||||
if (!(items || mobiles))
|
||||
{
|
||||
return;
|
||||
}
|
||||
|
||||
var eable = map.GetObjectsInBounds(rect, items, mobiles);
|
||||
|
||||
var objs = new List<object>();
|
||||
|
||||
foreach (var obj in eable)
|
||||
if ((!mobiles || obj is Mobile) && BaseCommand.IsAccessible(from, obj) && ext.IsValid(obj))
|
||||
{
|
||||
if ((!mobiles || obj is Mobile) && BaseCommand.IsAccessible(@from, obj) && ext.IsValid(obj))
|
||||
{
|
||||
objs.Add(obj);
|
||||
}
|
||||
}
|
||||
|
||||
eable.Free();
|
||||
ext.Filter(objs);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue