Some cleanup of CanSeeOrDetect code.
This commit is contained in:
1 parent
dc2bdb8e13
commit
5912e2444d
10 files changed
+25
-42
No files matched your search
@@ -21077,15 +21077,15 @@ WorldLocation Player::GetStartPosition() const
|
||||
return WorldLocation(mapId, info->positionX, info->positionY, info->positionZ, 0);
|
||||
}
|
||||
|
||||
bool Player::isValid() const
|
||||
bool Player::IsNeverVisible() const
|
||||
{
|
||||
if (!Unit::isValid())
|
||||
return false;
|
||||
if (Unit::IsNeverVisible())
|
||||
return true;
|
||||
|
||||
if (GetSession()->PlayerLogout() || GetSession()->PlayerLoading())
|
||||
return false;
|
||||
return true;
|
||||
|
||||
return true;
|
||||
return false;
|
||||
}
|
||||
|
||||
bool Player::canSeeAlways(WorldObject const* obj) const
|
||||
|
||||
Reference in new issue
Block a user