Clean up: Bugs, LINQ, constructors, default values, and null checks (#18)
This commit is contained in:
parent
e748af4430
commit
513e54f70e
1094 changed files with 15913 additions and 21892 deletions
|
|
@ -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();
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue