add Deleted property to IEntity

cleanup Map.GetObjectsInRange
additional hashtable -> dictionary conversions
generic timer impl for EffectController
This commit is contained in:
Mark Sturgill 2013-11-02 10:52:08 -07:00
parent 4fccb0c3d3
commit 436e8f054a
7 changed files with 84 additions and 76 deletions

View file

@ -1382,19 +1382,19 @@ namespace Server
{
IEntity e = (IEntity)m_CurrentList[m_CurrentIndex];
if (e.Deleted)
continue;
if (e is Item)
{
Item item = (Item)e;
if (!item.Deleted && item.Parent == null && m_Bounds.Contains(e.Location))
return true;
}
else if (e is Mobile)
{
Mobile m = (Mobile)e;
if (!m.Deleted && m_Bounds.Contains(e.Location))
return true;
if (item.Parent != null)
continue;
}
if (m_Bounds.Contains(e.Location))
return true;
}
}
}