additional ientity.deleted impl

This commit is contained in:
Mark Sturgill 2013-11-02 11:06:47 -07:00
parent 436e8f054a
commit 142f71c258
2 changed files with 2 additions and 7 deletions

View file

@ -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()

View file

@ -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 );