Skip to content

Commit

Permalink
[10020] Drop unused member in VisibleNotifier structure and related f…
Browse files Browse the repository at this point in the history
…unctions

(based on SilverIce's repo commit e678555)

Signed-off-by: VladimirMangos <vladimir@getmangos.com>

Also applied mangos code style to GridNotifiersImpl.h
  • Loading branch information
SilverIce authored and VladimirMangos committed Jun 2, 2010
1 parent 77f1f11 commit c027ae2
Show file tree
Hide file tree
Showing 6 changed files with 127 additions and 145 deletions.
13 changes: 1 addition & 12 deletions src/game/GridNotifiers.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ VisibleNotifier::Notify()
{
// ignore far sight case
(*itr)->UpdateVisibilityOf((*itr),&i_player);
i_player.UpdateVisibilityOf(&i_player,(*itr),i_data,i_data_updates,i_visibleNow);
i_player.UpdateVisibilityOf(&i_player,(*itr),i_data,i_visibleNow);
i_clientGUIDs.erase((*itr)->GetGUID());
}
}
Expand All @@ -68,17 +68,6 @@ VisibleNotifier::Notify()
DEBUG_FILTER_LOG(LOG_FILTER_VISIBILITY_CHANGES, "%s is out of range (no in active cells set) now for player %u",itr->GetString().c_str(),i_player.GetGUIDLow());
}

// 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)
Expand Down
1 change: 0 additions & 1 deletion src/game/GridNotifiers.h
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,6 @@ namespace MaNGOS
{
Player &i_player;
UpdateData i_data;
UpdateDataMapType i_data_updates;
ObjectGuidSet i_clientGUIDs;
std::set<WorldObject*> i_visibleNow;

Expand Down
Loading

0 comments on commit c027ae2

Please sign in to comment.