Core/Visibility: Send object destroy packets to dead players. Fixes persistent visuals of no longer existing entities while dead.
Closes #2458
This commit is contained in:
1 parent
d4a68025c7
commit
0711746b57
2 files changed
+17
-12
No files matched your search
@@ -2724,7 +2724,7 @@ void WorldObject::DestroyForNearbyPlayers()
|
||||
return;
|
||||
|
||||
std::list<Player*> targets;
|
||||
Trinity::AnyPlayerInObjectRangeCheck check(this, GetVisibilityRange());
|
||||
Trinity::AnyPlayerInObjectRangeCheck check(this, GetVisibilityRange(), false);
|
||||
Trinity::PlayerListSearcher<Trinity::AnyPlayerInObjectRangeCheck> searcher(this, targets, check);
|
||||
VisitNearbyWorldObject(GetVisibilityRange(), searcher);
|
||||
for (std::list<Player*>::const_iterator iter = targets.begin(); iter != targets.end(); ++iter)
|
||||
|
||||
Reference in new issue
Block a user