feat(Core/Maps): Improvements to Cinematic function (#10765)

This commit is contained in:
IntelligentQuantum 2022-03-11 10:51:54 +03:30 committed by GitHub
parent f3e0d4e402
commit 7ad65752fa
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
18 changed files with 713 additions and 603 deletions

View file

@ -1621,7 +1621,7 @@ float WorldObject::GetGridActivationRange() const
{
if (ToPlayer())
{
if (ToPlayer()->IsOnCinematic())
if (ToPlayer()->GetCinematicMgr()->IsOnCinematic())
{
return DEFAULT_VISIBILITY_INSTANCE;
}
@ -1688,7 +1688,7 @@ float WorldObject::GetSightRange(WorldObject const* target) const
{
return MAX_VISIBILITY_DISTANCE;
}
else if (ToPlayer()->IsOnCinematic())
else if (ToPlayer()->GetCinematicMgr()->IsOnCinematic())
{
return DEFAULT_VISIBILITY_INSTANCE;
}