Revised drag effect fix.

This commit is contained in:
eos 2013-02-05 19:42:45 +00:00
parent 171a1531da
commit 0cb8782d87

View file

@ -4505,6 +4505,8 @@ namespace Server
IPooledEnumerable eable = map.GetClientsInRange( m_Location );
Packet p = null;
bool sameLoc = false;
foreach( NetState ns in eable )
{
if( ns.Mobile != this && ns.Mobile.CanSee( this ) && ns.Mobile.CanSee( root ) )
@ -4519,11 +4521,14 @@ namespace Server
trg = new Entity( ((Item)root).Serial, ((Item)root).Location, map );
if ( m_Location == trg.Location )
break; // causes crash on SA+ clients
sameLoc = true;
p = Packet.Acquire( new DragEffect( this, trg, item.ItemID, item.Hue, item.Amount ) );
}
if ( ns.StygianAbyss && sameLoc )
continue; // prevents crash
ns.Send( p );
}
}