public void OnLeave(Mobile m) { if (m_Mobiles != null) { m_Mobiles.Remove(m); } if (m_Clients != null && m.NetState != null) { m_Clients.Remove(m.NetState); } if (m.Player) { if (m_Players != null) { m_Players.Remove(m); } if (m_Players == null || m_Players.Count == 0) { Owner.DeactivateSectors(m_X, m_Y); } } }
public void OnLeave(Mobile mob) { Remove(ref m_Mobiles, mob); if (mob.NetState != null) { Remove(ref m_Clients, mob.NetState); } if (mob.Player && m_Players != null) { Remove(ref m_Players, mob); if (m_Players == null) { Owner.DeactivateSectors(X, Y); } } }