From c931226055590049c5cfca394d830976b2bb71c2 Mon Sep 17 00:00:00 2001 From: trickerer Date: Sat, 30 Sep 2023 08:21:31 +0700 Subject: [PATCH] NPCBots: Remove (presumably) no longer needed code --- src/server/game/Grids/Notifiers/GridNotifiers.cpp | 4 ---- 1 file changed, 4 deletions(-) diff --git a/src/server/game/Grids/Notifiers/GridNotifiers.cpp b/src/server/game/Grids/Notifiers/GridNotifiers.cpp index 54055fa67b1a16..c9e9bd73522f3c 100644 --- a/src/server/game/Grids/Notifiers/GridNotifiers.cpp +++ b/src/server/game/Grids/Notifiers/GridNotifiers.cpp @@ -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))