diff --git a/Server/Mobile.cs b/Server/Mobile.cs index 5b64279ba..353cdfe45 100644 --- a/Server/Mobile.cs +++ b/Server/Mobile.cs @@ -6162,7 +6162,7 @@ namespace Server ProcessDelta(); Packet p = null; - Packet pOld = null; + //Packet pNew = null; IPooledEnumerable eable = map.GetClientsInRange( m_Location ); @@ -6172,22 +6172,22 @@ namespace Server { state.Mobile.ProcessDelta(); - if ( state.IsPost7000 ) { + //if ( state.IsPost7000 ) { + //if( pNew == null ) + //pNew = Packet.Acquire( new NewMobileAnimation( this, action, frameCount, delay ) ); + + //state.Send( pNew ); + //} else { if( p == null ) - p = Packet.Acquire( new MobileAnimation( this, action, frameCount, delay ) ); + p = Packet.Acquire( new MobileAnimation( this, action, frameCount, repeatCount, forward, repeat, delay ) ); state.Send( p ); - } else { - if( pOld == null ) - pOld = Packet.Acquire( new OldMobileAnimation( this, action, frameCount, repeatCount, forward, repeat, delay ) ); - - state.Send( pOld ); - } + //} } } Packet.Release( p ); - Packet.Release( pOld ); + //Packet.Release( pNew ); eable.Free(); } diff --git a/Server/Network/Packets.cs b/Server/Network/Packets.cs index a317cae57..83da89b8e 100644 --- a/Server/Network/Packets.cs +++ b/Server/Network/Packets.cs @@ -2713,9 +2713,9 @@ namespace Server.Network } } - public sealed class OldMobileAnimation : Packet + public sealed class MobileAnimation : Packet { - public OldMobileAnimation( Mobile m, int action, int frameCount, int repeatCount, bool forward, bool repeat, int delay ) : base( 0x6E, 14 ) + public MobileAnimation( Mobile m, int action, int frameCount, int repeatCount, bool forward, bool repeat, int delay ) : base( 0x6E, 14 ) { m_Stream.Write( (int) m.Serial ); m_Stream.Write( (short) action ); @@ -2726,10 +2726,10 @@ namespace Server.Network m_Stream.Write( (byte) delay ); } } - - public sealed class MobileAnimation : Packet + + public sealed class NewMobileAnimation : Packet { - public MobileAnimation( Mobile m, int action, int frameCount, int delay ) : base( 0xE2, 10 ) + public NewMobileAnimation( Mobile m, int action, int frameCount, int delay ) : base( 0xE2, 10 ) { m_Stream.Write( (int) m.Serial ); m_Stream.Write( (short) action );