Skip to content

Commit

Permalink
Playerbots: Fix grid loading issue (#536)
Browse files Browse the repository at this point in the history
  • Loading branch information
Exxenoz authored Mar 31, 2024
1 parent a581257 commit 7a6e811
Showing 1 changed file with 0 additions and 5 deletions.
5 changes: 0 additions & 5 deletions src/game/Entities/Camera.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -146,11 +146,6 @@ template void Camera::UpdateVisibilityOf(DynamicObject*, UpdateData&, WorldObjec

void Camera::UpdateVisibilityForOwner(bool addToWorld)
{
#ifdef ENABLE_PLAYERBOTS
if (!m_owner.isRealPlayer())
return;
#endif

MaNGOS::VisibleNotifier notifier(*this);
Cell::VisitAllObjects(m_source, notifier, addToWorld ? MAX_VISIBILITY_DISTANCE : m_source->GetVisibilityData().GetVisibilityDistance(), false);
notifier.Notify();
Expand Down

0 comments on commit 7a6e811

Please sign in to comment.