From 0cb8782d8770f191ff2bb957cc74bf0c33bf4ccf Mon Sep 17 00:00:00 2001 From: eos Date: Tue, 5 Feb 2013 19:42:45 +0000 Subject: [PATCH] Revised drag effect fix. --- Server/Mobile.cs | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/Server/Mobile.cs b/Server/Mobile.cs index e7791461d..c4041500f 100644 --- a/Server/Mobile.cs +++ b/Server/Mobile.cs @@ -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 ); } }