Clean up: Bugs, LINQ, constructors, default values, and null checks (#18)

This commit is contained in:
Kamron Batman 2019-03-11 14:29:59 -07:00 • committed by GitHub
parent e748af4430
commit 513e54f70e
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
1094 changed files with 15913 additions and 21892 deletions

View file

@ -28,7 +28,7 @@ namespace Server.Engines.Quests.Doom
{
get
{
if (m_Altar == null || m_Altar.Deleted || m_Altar.Map != Map ||
if (m_Altar?.Deleted != false || m_Altar.Map != Map ||
!Utility.InRange(m_Altar.Location, Location, AltarRange))
foreach (Item item in GetItemsInRange(AltarRange))
if (item is SummoningAltar altar)
@ -143,4 +143,4 @@ namespace Server.Engines.Quests.Doom
int version = reader.ReadInt();
}
}
}
}