Core/Refactor: Part 1
This commit is contained in:
@@ -180,12 +180,6 @@ namespace Game.Entities
|
||||
|
||||
public static bool operator ==(ObjectGuid first, ObjectGuid other)
|
||||
{
|
||||
if (ReferenceEquals(first, other))
|
||||
return true;
|
||||
|
||||
if ((object)first == null || (object)other == null)
|
||||
return false;
|
||||
|
||||
return first.Equals(other);
|
||||
}
|
||||
|
||||
|
||||
@@ -2444,10 +2444,9 @@ namespace Game.Entities
|
||||
|
||||
public bool IsInMap(WorldObject obj)
|
||||
{
|
||||
var m = GetMap().GetId();
|
||||
var b = obj.GetMap().GetId();
|
||||
if (obj != null)
|
||||
return IsInWorld && obj.IsInWorld && m == b;
|
||||
return IsInWorld && obj.IsInWorld && GetMap().GetId() == obj.GetMap().GetId();
|
||||
|
||||
return false;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user