Core/Commands: added selection's name to gm logs

--HG--
branch : trunk
This commit is contained in:
Rat
2010-09-28 16:42:06 +02:00
parent e27976102d
commit 6875626647
+2 -2
View File
@@ -1048,9 +1048,9 @@ bool ChatHandler::ExecuteCommandInTable(ChatCommand *table, const char* text, co
{ {
Player* p = m_session->GetPlayer(); Player* p = m_session->GetPlayer();
uint64 sel_guid = p->GetSelection(); uint64 sel_guid = p->GetSelection();
sLog.outCommand(m_session->GetAccountId(),"Command: %s [Player: %s (Account: %u) X: %f Y: %f Z: %f Map: %u Selected: %s (GUID: %u)]", sLog.outCommand(m_session->GetAccountId(),"Command: %s [Player: %s (Account: %u) X: %f Y: %f Z: %f Map: %u Selected %s: %s (GUID: %u)]",
fullcmd.c_str(),p->GetName(),m_session->GetAccountId(),p->GetPositionX(),p->GetPositionY(),p->GetPositionZ(),p->GetMapId(), fullcmd.c_str(),p->GetName(),m_session->GetAccountId(),p->GetPositionX(),p->GetPositionY(),p->GetPositionZ(),p->GetMapId(),
GetLogNameForGuid(sel_guid),GUID_LOPART(sel_guid)); GetLogNameForGuid(sel_guid), (p->GetSelectedUnit()) ? p->GetSelectedUnit()->GetName() : "", GUID_LOPART(sel_guid));
} }
} }
} }