Revised drag effect fix.
This commit is contained in:
parent
171a1531da
commit
0cb8782d87
1 changed files with 6 additions and 1 deletions
|
|
@ -4505,6 +4505,8 @@ namespace Server
|
||||||
IPooledEnumerable eable = map.GetClientsInRange( m_Location );
|
IPooledEnumerable eable = map.GetClientsInRange( m_Location );
|
||||||
Packet p = null;
|
Packet p = null;
|
||||||
|
|
||||||
|
bool sameLoc = false;
|
||||||
|
|
||||||
foreach( NetState ns in eable )
|
foreach( NetState ns in eable )
|
||||||
{
|
{
|
||||||
if( ns.Mobile != this && ns.Mobile.CanSee( this ) && ns.Mobile.CanSee( root ) )
|
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 );
|
trg = new Entity( ((Item)root).Serial, ((Item)root).Location, map );
|
||||||
|
|
||||||
if ( m_Location == trg.Location )
|
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 ) );
|
p = Packet.Acquire( new DragEffect( this, trg, item.ItemID, item.Hue, item.Amount ) );
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if ( ns.StygianAbyss && sameLoc )
|
||||||
|
continue; // prevents crash
|
||||||
|
|
||||||
ns.Send( p );
|
ns.Send( p );
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue