Core: Codestyle clean-up

"plr"->player

Note: codestyle methods needs maintained, Player* player.
This commit is contained in:
Bootz committed 2011-11-07 11:06:39 -06:00
1 parent c51f6e7fa0
commit f75ec5ba2b
67 files changed
+852 -852

No files matched your search

@@ -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);
}
}
*/