Skip to content

Commit

Permalink
NPCBots: Remove (presumably) no longer needed code
Browse files Browse the repository at this point in the history
  • Loading branch information
trickerer committed Sep 30, 2023
1 parent dbf6f4b commit c931226
Showing 1 changed file with 0 additions and 4 deletions.
4 changes: 0 additions & 4 deletions src/server/game/Grids/Notifiers/GridNotifiers.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -62,10 +62,6 @@ void VisibleNotifier::SendToSelf()

for (GuidUnorderedSet::const_iterator it = vis_guids.begin(); it != vis_guids.end(); ++it)
{
//npcbot:
if (obj->IsNPCBotOrPet() && i_player.GetDistance2d(obj) < i_player.GetVisibilityRange() && i_player.CanSeeOrDetect(obj, false, true))
continue;
//end npcbot
// pussywizard: static transports are removed only in RemovePlayerFromMap and here if can no longer detect (eg. phase changed)
if ((*it).IsTransport())
if (GameObject* staticTrans = i_player.GetMap()->GetGameObject(*it))
Expand Down

0 comments on commit c931226

Please sign in to comment.