Core: Codestyle clean-up

"plr"->player

Note: codestyle methods needs maintained, Player* player.
This commit is contained in:
Bootz
2011-11-07 11:06:39 -06:00
parent c51f6e7fa0
commit f75ec5ba2b
67 changed files with 852 additions and 852 deletions
@@ -55,9 +55,9 @@ void VisibleNotifier::SendToSelf()
if (IS_PLAYER_GUID(*it))
{
Player* plr = ObjectAccessor::FindPlayer(*it);
if (plr && plr->IsInWorld() && !plr->isNeedNotify(NOTIFY_VISIBILITY_CHANGED))
plr->UpdateVisibilityOf(&i_player);
Player* player = ObjectAccessor::FindPlayer(*it);
if (player && player->IsInWorld() && !player->isNeedNotify(NOTIFY_VISIBILITY_CHANGED))
player->UpdateVisibilityOf(&i_player);
}
}
@@ -122,16 +122,16 @@ void PlayerRelocationNotifier::Visit(PlayerMapType &m)
{
for (PlayerMapType::iterator iter=m.begin(); iter != m.end(); ++iter)
{
Player* plr = iter->getSource();
Player* player = iter->getSource();
vis_guids.erase(plr->GetGUID());
vis_guids.erase(player->GetGUID());
i_player.UpdateVisibilityOf(plr, i_data, i_visibleNow);
i_player.UpdateVisibilityOf(player, i_data, i_visibleNow);
if (plr->m_seer->isNeedNotify(NOTIFY_VISIBILITY_CHANGED))
if (player->m_seer->isNeedNotify(NOTIFY_VISIBILITY_CHANGED))
continue;
plr->UpdateVisibilityOf(&i_player);
player->UpdateVisibilityOf(&i_player);
}
}
@@ -307,11 +307,11 @@ void MessageDistDeliverer::Visit(DynamicObjectMapType &m)
/*
void
MessageDistDeliverer::VisitObject(Player* plr)
MessageDistDeliverer::VisitObject(Player* player)
{
if (!i_ownTeamOnly || (i_source.GetTypeId() == TYPEID_PLAYER && plr->GetTeam() == ((Player&)i_source).GetTeam()))
if (!i_ownTeamOnly || (i_source.GetTypeId() == TYPEID_PLAYER && player->GetTeam() == ((Player&)i_source).GetTeam()))
{
SendPacket(plr);
SendPacket(player);
}
}
*/
@@ -137,16 +137,16 @@ namespace Trinity
void Visit(DynamicObjectMapType &m);
template<class SKIP> void Visit(GridRefManager<SKIP> &) {}
void SendPacket(Player* plr)
void SendPacket(Player* player)
{
// never send packet to self
if (plr == i_source || (team && plr->GetTeam() != team) || skipped_receiver == plr)
if (player == i_source || (team && player->GetTeam() != team) || skipped_receiver == player)
return;
if (!plr->HaveAtClient(i_source))
if (!player->HaveAtClient(i_source))
return;
if (WorldSession* session = plr->GetSession())
if (WorldSession* session = player->GetSession())
session->SendPacket(i_message);
}
};