diff options
author | megamage <none@none> | 2009-03-18 15:31:44 -0600 |
---|---|---|
committer | megamage <none@none> | 2009-03-18 15:31:44 -0600 |
commit | 82777554a0a14a73e2dc9ffcda662ad89408b229 (patch) | |
tree | c5b28e3501d4256fa2257b41a001e5ad5f97d375 /src/game/GridNotifiers.cpp | |
parent | 838ad6d847b5058a4eb9fd1be8496bf7ed4ca601 (diff) | |
parent | dbd69bda613faed2cc30ba95de5c07235ae73653 (diff) |
*Merge with 243.
--HG--
branch : trunk
Diffstat (limited to 'src/game/GridNotifiers.cpp')
-rw-r--r-- | src/game/GridNotifiers.cpp | 13 |
1 files changed, 1 insertions, 12 deletions
diff --git a/src/game/GridNotifiers.cpp b/src/game/GridNotifiers.cpp index 8699ca00de5..86f4be9adc6 100644 --- a/src/game/GridNotifiers.cpp +++ b/src/game/GridNotifiers.cpp @@ -53,7 +53,7 @@ PlayerVisibilityNotifier::Notify() if(i_clientGUIDs.find((*itr)->GetGUID())!=i_clientGUIDs.end()) { (*itr)->UpdateVisibilityOf(&i_player); - i_player.UpdateVisibilityOf((*itr),i_data,i_data_updates,i_visibleNow); + i_player.UpdateVisibilityOf((*itr),i_data,i_visibleNow); i_clientGUIDs.erase((*itr)->GetGUID()); } } @@ -71,17 +71,6 @@ PlayerVisibilityNotifier::Notify() #endif } - // send update to other players (except player updates that already sent using SendUpdateToPlayer) - for(UpdateDataMapType::iterator iter = i_data_updates.begin(); iter != i_data_updates.end(); ++iter) - { - if(iter->first==&i_player) - continue; - - WorldPacket packet; - iter->second.BuildPacket(&packet); - iter->first->GetSession()->SendPacket(&packet); - } - if( i_data.HasData() ) { // send create/outofrange packet to player (except player create updates that already sent using SendUpdateToPlayer) |