Core: Codestyle clean-up
"plr"->player Note: codestyle methods needs maintained, Player* player.
This commit is contained in:
@@ -114,9 +114,9 @@ void PlayerSocial::SetFriendNote(uint32 friend_guid, std::string note)
|
||||
m_playerSocialMap[friend_guid].Note = note;
|
||||
}
|
||||
|
||||
void PlayerSocial::SendSocialList(Player* plr)
|
||||
void PlayerSocial::SendSocialList(Player* player)
|
||||
{
|
||||
if (!plr)
|
||||
if (!player)
|
||||
return;
|
||||
|
||||
uint32 size = m_playerSocialMap.size();
|
||||
@@ -127,7 +127,7 @@ void PlayerSocial::SendSocialList(Player* plr)
|
||||
|
||||
for (PlayerSocialMap::iterator itr = m_playerSocialMap.begin(); itr != m_playerSocialMap.end(); ++itr)
|
||||
{
|
||||
sSocialMgr->GetFriendInfo(plr, itr->first, itr->second);
|
||||
sSocialMgr->GetFriendInfo(player, itr->first, itr->second);
|
||||
|
||||
data << uint64(itr->first); // player guid
|
||||
data << uint32(itr->second.Flags); // player flag (0x1-friend?, 0x2-ignored?, 0x4-muted?)
|
||||
@@ -144,7 +144,7 @@ void PlayerSocial::SendSocialList(Player* plr)
|
||||
}
|
||||
}
|
||||
|
||||
plr->GetSession()->SendPacket(&data);
|
||||
player->GetSession()->SendPacket(&data);
|
||||
sLog->outDebug(LOG_FILTER_NETWORKIO, "WORLD: Sent SMSG_CONTACT_LIST");
|
||||
}
|
||||
|
||||
|
||||
@@ -124,7 +124,7 @@ class PlayerSocial
|
||||
void RemoveFromSocialList(uint32 friend_guid, bool ignore);
|
||||
void SetFriendNote(uint32 friend_guid, std::string note);
|
||||
// Packet send's
|
||||
void SendSocialList(Player* plr);
|
||||
void SendSocialList(Player* player);
|
||||
// Misc
|
||||
bool HasFriend(uint32 friend_guid);
|
||||
bool HasIgnore(uint32 ignore_guid);
|
||||
|
||||
Reference in New Issue
Block a user