fix: Cleanup IPoint3D calls (#704)
This commit is contained in:
parent
788b04b958
commit
3293ffcf06
33 changed files with 158 additions and 264 deletions
|
|
@ -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))
|
||||
{
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue