This commit is contained in:
xavier@runuo.com 2013-05-07 19:19:24 +00:00
parent 10a21d850d
commit 110bd99e56
3 changed files with 336 additions and 89 deletions

View file

@ -3029,6 +3029,14 @@ namespace Server
}
}
private bool m_NoMoveHS;
public bool NoMoveHS
{
get { return m_NoMoveHS; }
set { m_NoMoveHS = value; }
}
public void ProcessDelta()
{
ItemDelta flags = m_DeltaFlags;
@ -3558,6 +3566,7 @@ namespace Server
eable.Free();
}
Point3D oldLoc = m_Location;
m_Location = value;
ReleaseWorldPackets();
@ -3569,7 +3578,7 @@ namespace Server
{
Mobile m = state.Mobile;
if ( m.CanSee( this ) && m.InRange( m_Location, GetUpdateRange( m ) ) )
if ( m.CanSee( this ) && m.InRange( m_Location, GetUpdateRange( m ) ) && ( !state.HighSeas || !m_NoMoveHS || ( m_DeltaFlags & ItemDelta.Update ) != 0 || !m.InRange( oldLoc, GetUpdateRange( m ) ) ) )
SendInfoTo( state );
}