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

+8 -8
View File
@@ -55,12 +55,12 @@ bool MapSessionFilter::Process(WorldPacket* packet)
if (opHandle.packetProcessing == PROCESS_THREADUNSAFE)
return false;
Player* plr = m_pSession->GetPlayer();
if (!plr)
Player* player = m_pSession->GetPlayer();
if (!player)
return false;
//in Map::Update() we do not process packets where player is not in world!
return plr->IsInWorld();
return player->IsInWorld();
}
//we should process ALL packets when player is not in world/logged in
@@ -77,12 +77,12 @@ bool WorldSessionFilter::Process(WorldPacket* packet)
return true;
//no player attached? -> our client! ^^
Player* plr = m_pSession->GetPlayer();
if (!plr)
Player* player = m_pSession->GetPlayer();
if (!player)
return true;
//lets process all packets for non-in-the-world player
return (plr->IsInWorld() == false);
return (player->IsInWorld() == false);
}
/// WorldSession constructor
@@ -964,9 +964,9 @@ void WorldSession::SendAddonsInfo()
SendPacket(&data);
}
void WorldSession::SetPlayer(Player* plr)
void WorldSession::SetPlayer(Player* player)
{
_player = plr;
_player = player;
// set m_GUID that can be used while player loggined and later until m_playerRecentlyLogout not reset
if (_player)