Skip to content

Commit

Permalink
Playerbots: Fix grid loading issue (#536) - Exxenoz
Browse files Browse the repository at this point in the history
  • Loading branch information
davidonete committed Mar 31, 2024
1 parent b9d855e commit 3bf443a
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 @@ -145,11 +145,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 3bf443a

Please sign in to comment.