diff options
author | megamage <none@none> | 2009-03-17 14:35:11 -0600 |
---|---|---|
committer | megamage <none@none> | 2009-03-17 14:35:11 -0600 |
commit | 5fb7a0585c0fcc417811aae23ced3dd577aadcd3 (patch) | |
tree | 809c489a4931acbaa8cab0f86dd29ad419c01486 /src/game/GridNotifiers.cpp | |
parent | d4b52d5bbcd966da58e03db11442bee995c11e98 (diff) |
*Fix a bug that redundant packets are sent to clients which may cause freeze.
--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 fcb4e376b26..f52932df83d 100644 --- a/src/game/GridNotifiers.cpp +++ b/src/game/GridNotifiers.cpp @@ -54,7 +54,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()); } } @@ -72,17 +72,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) |