Core: More codestyle cleanups
This commit is contained in:
1 parent
158966dc79
commit
f16df538ee
87 files changed
+309
-309
No files matched your search
@@ -81,7 +81,7 @@ bool ChatHandler::HandleGMTicketGetByNameCommand(const char* args)
|
||||
|
||||
// Detect target's GUID
|
||||
uint64 guid = 0;
|
||||
if (Player *player = sObjectMgr->GetPlayer(name.c_str()))
|
||||
if (Player* player = sObjectMgr->GetPlayer(name.c_str()))
|
||||
guid = player->GetGUID();
|
||||
else
|
||||
guid = sObjectMgr->GetPlayerGUIDByName(name);
|
||||
@@ -133,7 +133,7 @@ bool ChatHandler::HandleGMTicketCloseByIdCommand(const char* args)
|
||||
SendGlobalGMSysMessage(msg.c_str());
|
||||
|
||||
// Inform player, who submitted this ticket, that it is closed
|
||||
if (Player *player = ticket->GetPlayer())
|
||||
if (Player* player = ticket->GetPlayer())
|
||||
if (player->IsInWorld())
|
||||
{
|
||||
WorldPacket data(SMSG_GMTICKET_DELETETICKET, 4);
|
||||
@@ -183,7 +183,7 @@ bool ChatHandler::HandleGMTicketAssignToCommand(const char* args)
|
||||
return true;
|
||||
}
|
||||
// If assigned to different player other than current, leave
|
||||
Player *player = m_session->GetPlayer();
|
||||
Player* player = m_session->GetPlayer();
|
||||
if (ticket->IsAssignedNotTo(player->GetGUID()))
|
||||
{
|
||||
PSendSysMessage(LANG_COMMAND_TICKETALREADYASSIGNED, ticket->GetId(), target.c_str());
|
||||
@@ -230,7 +230,7 @@ bool ChatHandler::HandleGMTicketUnAssignCommand(const char* args)
|
||||
security = sAccountMgr->GetSecurity(accountId, realmID);
|
||||
}
|
||||
// Check security
|
||||
Player *player = m_session->GetPlayer();
|
||||
Player* player = m_session->GetPlayer();
|
||||
if (security > uint32(player->GetSession()->GetSecurity()))
|
||||
{
|
||||
SendSysMessage(LANG_COMMAND_TICKETUNASSIGNSECURITY);
|
||||
@@ -364,7 +364,7 @@ bool ChatHandler::HandleGMTicketCompleteCommand(const char* args)
|
||||
return true;
|
||||
}
|
||||
|
||||
if (Player *player = ticket->GetPlayer())
|
||||
if (Player* player = ticket->GetPlayer())
|
||||
if (player->IsInWorld())
|
||||
ticket->SendResponse(player->GetSession());
|
||||
|
||||
|
||||
Reference in new issue
Block a user