mirror of
https://github.com/mangosfour/server.git
synced 2025-12-14 16:37:01 +00:00
[9725] removed PlayerNotifier and related Map::UpdatePlayerVisibility function, used UpdateObjectVisibility instead
(based on SilverIce's repo commit e226019) Signed-off-by: VladimirMangos <vladimir@getmangos.com> Note: this changes not affect in any good/bad way recent problem with player guids.
This commit is contained in:
parent
20162b6db4
commit
53eeebf2fe
6 changed files with 6 additions and 58 deletions
|
|
@ -27,22 +27,6 @@
|
|||
|
||||
using namespace MaNGOS;
|
||||
|
||||
void
|
||||
MaNGOS::PlayerNotifier::Visit(PlayerMapType &m)
|
||||
{
|
||||
WorldObject const* viewPoint = i_player.GetViewPoint();
|
||||
|
||||
for(PlayerMapType::iterator iter=m.begin(); iter != m.end(); ++iter)
|
||||
{
|
||||
Player* player = iter->getSource();
|
||||
if( player == &i_player )
|
||||
continue;
|
||||
|
||||
player->UpdateVisibilityOf(player->GetViewPoint(),&i_player);
|
||||
i_player.UpdateVisibilityOf(viewPoint,player);
|
||||
}
|
||||
}
|
||||
|
||||
void
|
||||
VisibleChangesNotifier::Visit(PlayerMapType &m)
|
||||
{
|
||||
|
|
@ -56,23 +40,6 @@ VisibleChangesNotifier::Visit(PlayerMapType &m)
|
|||
}
|
||||
}
|
||||
|
||||
void
|
||||
VisibleNotifier::Visit(PlayerMapType &m)
|
||||
{
|
||||
WorldObject const* viewPoint = i_player.GetViewPoint();
|
||||
|
||||
for(PlayerMapType::iterator iter=m.begin(); iter != m.end(); ++iter)
|
||||
{
|
||||
Player* player = iter->getSource();
|
||||
if( player == &i_player )
|
||||
continue;
|
||||
|
||||
player->UpdateVisibilityOf(player->GetViewPoint(),&i_player);
|
||||
i_player.UpdateVisibilityOf(viewPoint,player,i_data,i_data_updates,i_visibleNow);
|
||||
i_clientGUIDs.erase(player->GetGUID());
|
||||
}
|
||||
}
|
||||
|
||||
void
|
||||
VisibleNotifier::Notify()
|
||||
{
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue