fix: Prepares for IPooledEnumerable removal (#1548)
### Summary - Removes `IPooledEnumerable` (non-generic) - Changes `IPooledEnumerable<T>` so that `Free()` is replaced with the `IDisposable` pattern
This commit is contained in:
parent
c2d6578955
commit
d57f1fecc1
92 changed files with 644 additions and 907 deletions
|
|
@ -479,8 +479,6 @@ namespace Server.Engines.ConPVP
|
|||
}
|
||||
}
|
||||
|
||||
eable.Free();
|
||||
|
||||
if (empty)
|
||||
{
|
||||
HitObject(point, landTop, 0);
|
||||
|
|
@ -569,8 +567,6 @@ namespace Server.Engines.ConPVP
|
|||
{
|
||||
continue;
|
||||
}
|
||||
|
||||
area.Free();
|
||||
if (i is BRGoal goal)
|
||||
{
|
||||
var oldLoc = new Point3D(GetWorldLocation());
|
||||
|
|
@ -591,8 +587,6 @@ namespace Server.Engines.ConPVP
|
|||
return;
|
||||
}
|
||||
|
||||
area.Free();
|
||||
|
||||
var clients = Map.GetClientsInBounds(rect);
|
||||
foreach (var ns in clients)
|
||||
{
|
||||
|
|
@ -622,16 +616,12 @@ namespace Server.Engines.ConPVP
|
|||
continue;
|
||||
}
|
||||
|
||||
clients.Free();
|
||||
|
||||
// TODO: probably need to change this a lot...
|
||||
DoCatch(m);
|
||||
|
||||
return;
|
||||
}
|
||||
|
||||
clients.Free();
|
||||
|
||||
m_PathIdx = pathCheckEnd;
|
||||
|
||||
if (m_PathIdx > 0 && m_PathIdx - 1 < m_Path.Count)
|
||||
|
|
@ -685,8 +675,6 @@ namespace Server.Engines.ConPVP
|
|||
}
|
||||
}
|
||||
|
||||
eable.Free();
|
||||
|
||||
Z = myZ;
|
||||
m_Flying = false;
|
||||
Visible = true;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue