some ugly but necessary changes to support both pre and post 7.x clients

This commit is contained in:
mark 2009-10-04 08:19:19 +00:00
parent 94d1a17b6f
commit 115e74f44e
6 changed files with 457 additions and 117 deletions

View file

@ -115,21 +115,28 @@ namespace Server.Commands
if ( Utility.InUpdateRange( targ, from ) )
{
if ( targ.CanSee( from ) )
{
targ.Send( new Network.MobileIncoming( targ, from ) );
NetState ns = targ.NetState;
if ( ObjectPropertyList.Enabled )
if ( ns != null ) {
if ( targ.CanSee( from ) )
{
targ.Send( from.OPLPacket );
if ( ns.IsPost7000 )
ns.Send( new MobileIncoming( targ, from ) );
else
ns.Send( new MobileIncomingOld( targ, from ) );
foreach ( Item item in from.Items )
targ.Send( item.OPLPacket );
if ( ObjectPropertyList.Enabled )
{
ns.Send( from.OPLPacket );
foreach ( Item item in from.Items )
ns.Send( item.OPLPacket );
}
}
else
{
ns.Send( from.RemovePacket );
}
}
else
{
targ.Send( from.RemovePacket );
}
}
}