additional ientity.deleted impl
This commit is contained in:
parent
436e8f054a
commit
142f71c258
2 changed files with 2 additions and 7 deletions
|
|
@ -119,12 +119,7 @@ namespace Server.Mobiles
|
||||||
|
|
||||||
private bool IsDeleted( IEntity obj )
|
private bool IsDeleted( IEntity obj )
|
||||||
{
|
{
|
||||||
if ( obj is Item )
|
return obj.Deleted;
|
||||||
return ((Item)obj).Deleted;
|
|
||||||
else if ( obj is Mobile )
|
|
||||||
return ((Mobile)obj).Deleted;
|
|
||||||
|
|
||||||
return false;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
public void DeleteDisplayEntity()
|
public void DeleteDisplayEntity()
|
||||||
|
|
|
||||||
|
|
@ -2433,7 +2433,7 @@ namespace Server.Multis
|
||||||
{
|
{
|
||||||
writer.Write( (Point3D) relEntity.RelativeLocation );
|
writer.Write( (Point3D) relEntity.RelativeLocation );
|
||||||
|
|
||||||
if ( ( relEntity.Entity is Item && ((Item)relEntity.Entity).Deleted ) || ( relEntity.Entity is Mobile && ((Mobile)relEntity.Entity).Deleted ) )
|
if (relEntity.Entity.Deleted)
|
||||||
writer.Write( (int) Serial.MinusOne );
|
writer.Write( (int) Serial.MinusOne );
|
||||||
else
|
else
|
||||||
writer.Write( (int) relEntity.Entity.Serial );
|
writer.Write( (int) relEntity.Entity.Serial );
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue