fix(linq): Removes linq and fixes fishing error (#674)
This commit is contained in:
parent
b112be4e1f
commit
410b18ceca
19 changed files with 253 additions and 62 deletions
|
|
@ -75,7 +75,15 @@ namespace Server.Engines.Quests.Naturalist
|
|||
|
||||
public bool Contains(IPoint2D p)
|
||||
{
|
||||
return m_Rects.Any(rect => rect.Contains(p));
|
||||
foreach (var rect in m_Rects)
|
||||
{
|
||||
if (rect.Contains(p))
|
||||
{
|
||||
return true;
|
||||
}
|
||||
}
|
||||
|
||||
return false;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue