Core: More codestyle cleanups
This commit is contained in:
@@ -103,7 +103,7 @@ bool ArenaTeam::AddMember(const uint64& playerGuid)
|
||||
return false;
|
||||
|
||||
// Get player name and class either from db or ObjectMgr
|
||||
Player *player = sObjectMgr->GetPlayer(playerGuid);
|
||||
Player* player = sObjectMgr->GetPlayer(playerGuid);
|
||||
if (player)
|
||||
{
|
||||
playerClass = player->getClass();
|
||||
@@ -313,7 +313,7 @@ void ArenaTeam::DelMember(uint64 guid, bool cleanDb)
|
||||
}
|
||||
|
||||
// Inform player and remove arena team info from player data
|
||||
if (Player *player = sObjectMgr->GetPlayer(guid))
|
||||
if (Player* player = sObjectMgr->GetPlayer(guid))
|
||||
{
|
||||
player->GetSession()->SendArenaTeamCommandResult(ERR_ARENA_TEAM_QUIT_S, GetName(), "", 0);
|
||||
// delete all info regarding this team
|
||||
@@ -343,7 +343,7 @@ void ArenaTeam::Disband(WorldSession* session)
|
||||
{
|
||||
BroadcastEvent(ERR_ARENA_TEAM_DISBANDED_S, 0, 2, session->GetPlayerName(), GetName(), "");
|
||||
|
||||
if (Player *player = session->GetPlayer())
|
||||
if (Player* player = session->GetPlayer())
|
||||
sLog->outArena("Player: %s [GUID: %u] disbanded arena team type: %u [Id: %u].", player->GetName(), player->GetGUIDLow(), GetType(), GetId());
|
||||
}
|
||||
|
||||
|
||||
@@ -960,7 +960,7 @@ void Battleground::RemovePlayerAtLeave(const uint64& guid, bool Transport, bool
|
||||
}
|
||||
|
||||
// remove from raid group if player is member
|
||||
if (Group *group = GetBgRaid(team))
|
||||
if (Group* group = GetBgRaid(team))
|
||||
{
|
||||
if (!group->RemoveMember(guid)) // group was disbanded
|
||||
{
|
||||
|
||||
@@ -47,7 +47,7 @@ uint16 BattlegroundAV::GetBonusHonor(uint8 kills) //TODO: move this function to
|
||||
return Trinity::Honor::hk_honor_at_level(m_MaxLevel, kills);
|
||||
}
|
||||
|
||||
void BattlegroundAV::HandleKillPlayer(Player *player, Player *killer)
|
||||
void BattlegroundAV::HandleKillPlayer(Player* player, Player* killer)
|
||||
{
|
||||
if (GetStatus() != STATUS_IN_PROGRESS)
|
||||
return;
|
||||
@@ -56,7 +56,7 @@ void BattlegroundAV::HandleKillPlayer(Player *player, Player *killer)
|
||||
UpdateScore(player->GetTeam(), -1);
|
||||
}
|
||||
|
||||
void BattlegroundAV::HandleKillUnit(Creature *unit, Player *killer)
|
||||
void BattlegroundAV::HandleKillUnit(Creature* unit, Player* killer)
|
||||
{
|
||||
sLog->outDebug(LOG_FILTER_BATTLEGROUND, "bg_av HandleKillUnit %i", unit->GetEntry());
|
||||
if (GetStatus() != STATUS_IN_PROGRESS)
|
||||
@@ -133,7 +133,7 @@ void BattlegroundAV::HandleKillUnit(Creature *unit, Player *killer)
|
||||
ChangeMineOwner(AV_SOUTH_MINE, killer->GetTeam());
|
||||
}
|
||||
|
||||
void BattlegroundAV::HandleQuestComplete(uint32 questid, Player *player)
|
||||
void BattlegroundAV::HandleQuestComplete(uint32 questid, Player* player)
|
||||
{
|
||||
if (GetStatus() != STATUS_IN_PROGRESS)
|
||||
return;//maybe we should log this, cause this must be a cheater or a big bug
|
||||
|
||||
@@ -96,7 +96,7 @@ void BattlegroundBE::RemovePlayer(Player* /*plr*/, uint64 /*guid*/)
|
||||
CheckArenaWinConditions();
|
||||
}
|
||||
|
||||
void BattlegroundBE::HandleKillPlayer(Player *player, Player *killer)
|
||||
void BattlegroundBE::HandleKillPlayer(Player* player, Player* killer)
|
||||
{
|
||||
if (GetStatus() != STATUS_IN_PROGRESS)
|
||||
return;
|
||||
@@ -113,7 +113,7 @@ void BattlegroundBE::HandleKillPlayer(Player *player, Player *killer)
|
||||
CheckArenaWinConditions();
|
||||
}
|
||||
|
||||
bool BattlegroundBE::HandlePlayerUnderMap(Player *player)
|
||||
bool BattlegroundBE::HandlePlayerUnderMap(Player* player)
|
||||
{
|
||||
player->TeleportTo(GetMapId(), 6238.930176f, 262.963470f, 0.889519f, player->GetOrientation(), false);
|
||||
return true;
|
||||
|
||||
@@ -153,7 +153,7 @@ void BattlegroundDS::HandleAreaTrigger(Player *Source, uint32 Trigger)
|
||||
}
|
||||
}
|
||||
|
||||
bool BattlegroundDS::HandlePlayerUnderMap(Player *player)
|
||||
bool BattlegroundDS::HandlePlayerUnderMap(Player* player)
|
||||
{
|
||||
player->TeleportTo(GetMapId(), 1299.046f, 784.825f, 9.338f, 2.422f, false);
|
||||
return true;
|
||||
|
||||
@@ -574,7 +574,7 @@ void BattlegroundEY::RespawnFlagAfterDrop()
|
||||
SetDroppedFlagGUID(0);
|
||||
}
|
||||
|
||||
void BattlegroundEY::HandleKillPlayer(Player *player, Player *killer)
|
||||
void BattlegroundEY::HandleKillPlayer(Player* player, Player* killer)
|
||||
{
|
||||
if (GetStatus() != STATUS_IN_PROGRESS)
|
||||
return;
|
||||
|
||||
@@ -425,7 +425,7 @@ bool BattlegroundIC::SetupBattleground()
|
||||
return true;
|
||||
}
|
||||
|
||||
void BattlegroundIC::HandleKillUnit(Creature *unit, Player* killer)
|
||||
void BattlegroundIC::HandleKillUnit(Creature* unit, Player* killer)
|
||||
{
|
||||
if (GetStatus() != STATUS_IN_PROGRESS)
|
||||
return;
|
||||
|
||||
@@ -93,7 +93,7 @@ void BattlegroundNA::RemovePlayer(Player* /*plr*/, uint64 /*guid*/)
|
||||
CheckArenaWinConditions();
|
||||
}
|
||||
|
||||
void BattlegroundNA::HandleKillPlayer(Player *player, Player *killer)
|
||||
void BattlegroundNA::HandleKillPlayer(Player* player, Player* killer)
|
||||
{
|
||||
if (GetStatus() != STATUS_IN_PROGRESS)
|
||||
return;
|
||||
@@ -110,7 +110,7 @@ void BattlegroundNA::HandleKillPlayer(Player *player, Player *killer)
|
||||
CheckArenaWinConditions();
|
||||
}
|
||||
|
||||
bool BattlegroundNA::HandlePlayerUnderMap(Player *player)
|
||||
bool BattlegroundNA::HandlePlayerUnderMap(Player* player)
|
||||
{
|
||||
player->TeleportTo(GetMapId(), 4055.504395f, 2919.660645f, 13.611241f, player->GetOrientation(), false);
|
||||
return true;
|
||||
|
||||
@@ -93,7 +93,7 @@ void BattlegroundRL::RemovePlayer(Player* /*plr*/, uint64 /*guid*/)
|
||||
CheckArenaWinConditions();
|
||||
}
|
||||
|
||||
void BattlegroundRL::HandleKillPlayer(Player *player, Player *killer)
|
||||
void BattlegroundRL::HandleKillPlayer(Player* player, Player* killer)
|
||||
{
|
||||
if (GetStatus() != STATUS_IN_PROGRESS)
|
||||
return;
|
||||
@@ -110,7 +110,7 @@ void BattlegroundRL::HandleKillPlayer(Player *player, Player *killer)
|
||||
CheckArenaWinConditions();
|
||||
}
|
||||
|
||||
bool BattlegroundRL::HandlePlayerUnderMap(Player *player)
|
||||
bool BattlegroundRL::HandlePlayerUnderMap(Player* player)
|
||||
{
|
||||
player->TeleportTo(GetMapId(), 1285.810547f, 1667.896851f, 39.957642f, player->GetOrientation(), false);
|
||||
return true;
|
||||
|
||||
@@ -142,7 +142,7 @@ void BattlegroundRV::RemovePlayer(Player* /*plr*/, uint64 /*guid*/)
|
||||
CheckArenaWinConditions();
|
||||
}
|
||||
|
||||
void BattlegroundRV::HandleKillPlayer(Player *player, Player *killer)
|
||||
void BattlegroundRV::HandleKillPlayer(Player* player, Player* killer)
|
||||
{
|
||||
if (GetStatus() != STATUS_IN_PROGRESS)
|
||||
return;
|
||||
@@ -161,7 +161,7 @@ void BattlegroundRV::HandleKillPlayer(Player *player, Player *killer)
|
||||
CheckArenaWinConditions();
|
||||
}
|
||||
|
||||
bool BattlegroundRV::HandlePlayerUnderMap(Player *player)
|
||||
bool BattlegroundRV::HandlePlayerUnderMap(Player* player)
|
||||
{
|
||||
player->TeleportTo(GetMapId(), 763.5f, -284, 28.276f, 2.422f, false);
|
||||
return true;
|
||||
|
||||
@@ -897,7 +897,7 @@ void BattlegroundSA::UpdateDemolisherSpawns()
|
||||
}
|
||||
}
|
||||
|
||||
void BattlegroundSA::SendTransportInit(Player *player)
|
||||
void BattlegroundSA::SendTransportInit(Player* player)
|
||||
{
|
||||
if (m_BgObjects[BG_SA_BOAT_ONE] || m_BgObjects[BG_SA_BOAT_TWO])
|
||||
{
|
||||
|
||||
@@ -747,7 +747,7 @@ void BattlegroundWS::EndBattleground(uint32 winner)
|
||||
Battleground::EndBattleground(winner);
|
||||
}
|
||||
|
||||
void BattlegroundWS::HandleKillPlayer(Player *player, Player *killer)
|
||||
void BattlegroundWS::HandleKillPlayer(Player* player, Player* killer)
|
||||
{
|
||||
if (GetStatus() != STATUS_IN_PROGRESS)
|
||||
return;
|
||||
|
||||
Reference in New Issue
Block a user