fix: Cleanup IPoint3D calls (#704)

This commit is contained in:
Kamron Batman 2021-08-19 09:11:48 -07:00 • committed by GitHub
parent 788b04b958
commit 3293ffcf06
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
33 changed files with 158 additions and 264 deletions

View file

@ -58,7 +58,7 @@ namespace Server.Engines.PartySystem
var c = Members[i].Mobile;
var ns = c.NetState;
if (c != m && ns != null && m.Map == c.Map && Utility.InUpdateRange(c, m) && c.CanSee(m))
if (c != m && ns != null && m.Map == c.Map && Utility.InUpdateRange(c.Location, m.Location) && c.CanSee(m))
{
ns.Send(p);
}
@ -75,7 +75,7 @@ namespace Server.Engines.PartySystem
var c = Members[i].Mobile;
var ns = c.NetState;
if (c != m && ns != null && m.Map == c.Map && Utility.InUpdateRange(c, m) && c.CanSee(m))
if (c != m && ns != null && m.Map == c.Map && Utility.InUpdateRange(c.Location, m.Location) && c.CanSee(m))
{
ns.Send(p);
}
@ -85,7 +85,7 @@ namespace Server.Engines.PartySystem
public void OnStatsQuery(Mobile beholder, Mobile beheld)
{
if (beholder != beheld && Contains(beholder) && beholder.Map == beheld.Map &&
Utility.InUpdateRange(beholder, beheld))
Utility.InUpdateRange(beholder.Location, beheld.Location))
{
if (!beholder.CanSee(beheld))
{