aboutsummaryrefslogtreecommitdiff
path: root/src/game/GridNotifiers.cpp
diff options
context:
space:
mode:
authormegamage <none@none>2009-03-08 11:11:21 -0600
committermegamage <none@none>2009-03-08 11:11:21 -0600
commit0f8dee432c4eb78b466744b9e3e13266c6be19d7 (patch)
tree9687f7feba0f5f8c2deb43dc9f3f104e8b0714d2 /src/game/GridNotifiers.cpp
parent9720fb075f7e8d86d5d6a55ba0938e0c72a53cd5 (diff)
*Update of relocation notify code.
--HG-- branch : trunk
Diffstat (limited to 'src/game/GridNotifiers.cpp')
-rw-r--r--src/game/GridNotifiers.cpp41
1 files changed, 2 insertions, 39 deletions
diff --git a/src/game/GridNotifiers.cpp b/src/game/GridNotifiers.cpp
index f516035ea16..13fa66308e5 100644
--- a/src/game/GridNotifiers.cpp
+++ b/src/game/GridNotifiers.cpp
@@ -30,23 +30,6 @@
using namespace Trinity;
-/*void
-Trinity::PlayerNotifier::Visit(PlayerMapType &m)
-{
- for(PlayerMapType::iterator iter=m.begin(); iter != m.end(); ++iter)
- {
- if( iter->getSource() == &i_player )
- continue;
-
- iter->getSource()->UpdateVisibilityOf(&i_player);
- i_player.UpdateVisibilityOf(iter->getSource());
-
- if (!i_player.GetSharedVisionList().empty())
- for (SharedVisionList::const_iterator it = i_player.GetSharedVisionList().begin(); it != i_player.GetSharedVisionList().end(); ++it)
- (*it)->UpdateVisibilityOf(iter->getSource());
- }
-}*/
-
void
VisibleChangesNotifier::Visit(PlayerMapType &m)
{
@@ -60,27 +43,7 @@ VisibleChangesNotifier::Visit(PlayerMapType &m)
}
void
-VisibleNotifier::Visit(PlayerMapType &m)
-{
- for(PlayerMapType::iterator iter=m.begin(); iter != m.end(); ++iter)
- {
- if( iter->getSource() == &i_player )
- continue;
-
- iter->getSource()->UpdateVisibilityOf(&i_player);
- //i_player.UpdateVisibilityOf(iter->getSource());
-
- //if (!i_player.GetSharedVisionList().empty())
- // for (SharedVisionList::const_iterator it = i_player.GetSharedVisionList().begin(); it != i_player.GetSharedVisionList().end(); ++it)
- // (*it)->UpdateVisibilityOf(iter->getSource());
-
- i_player.UpdateVisibilityOf(iter->getSource(),i_data,i_data_updates,i_visibleNow);
- i_clientGUIDs.erase(iter->getSource()->GetGUID());
- }
-}
-
-void
-VisibleNotifier::Notify()
+PlayerRelocationNotifier::Notify()
{
// at this moment i_clientGUIDs have guids that not iterate at grid level checks
// but exist one case when this possible and object not out of range: transports
@@ -146,7 +109,7 @@ VisibleNotifier::Notify()
// send data at target visibility change (adding to client)
for(std::set<WorldObject*>::const_iterator vItr = i_visibleNow.begin(); vItr != i_visibleNow.end(); ++vItr)
if((*vItr)!=&i_player && (*vItr)->isType(TYPEMASK_UNIT))
- i_player.SendAuraDurationsForTarget((Unit*)(*vItr));
+ i_player.SendInitialVisiblePackets((Unit*)(*vItr));
}
void