fix: Cleanup IPoint3D calls (#704)
This commit is contained in:
parent
788b04b958
commit
3293ffcf06
33 changed files with 158 additions and 264 deletions
|
|
@ -121,7 +121,7 @@ namespace Server.Mobiles
|
|||
{
|
||||
activate = false;
|
||||
}
|
||||
else if (m.Map == null || m.Map == Map.Internal || !m.Map.GetSector(m).Active)
|
||||
else if (m.Map == null || m.Map == Map.Internal || !m.Map.GetSector(m.Location).Active)
|
||||
{
|
||||
activate = false;
|
||||
}
|
||||
|
|
@ -3040,7 +3040,7 @@ namespace Server.Mobiles
|
|||
|
||||
if (m_Owner.m_Mobile.PlayerRangeSensitive) // have to check this in the timer....
|
||||
{
|
||||
var sect = m_Owner.m_Mobile.Map.GetSector(m_Owner.m_Mobile);
|
||||
var sect = m_Owner.m_Mobile.Map.GetSector(m_Owner.m_Mobile.Location);
|
||||
if (!sect.Active)
|
||||
{
|
||||
m_Owner.Deactivate();
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue