mirror of
https://github.com/mangosfour/server.git
synced 2025-12-16 04:37:00 +00:00
Apply style fix pt2
This commit is contained in:
parent
35405dd549
commit
1392c131e7
77 changed files with 1318 additions and 817 deletions
|
|
@ -447,7 +447,10 @@ bool ChatHandler::HandleDebugGetItemStateCommand(char* args)
|
|||
{ return false; }
|
||||
|
||||
Player* player = getSelectedPlayer();
|
||||
if (!player) { player = m_session->GetPlayer(); }
|
||||
if (!player)
|
||||
{
|
||||
player = m_session->GetPlayer();
|
||||
}
|
||||
|
||||
if (!list_queue && !check_all)
|
||||
{
|
||||
|
|
@ -461,7 +464,10 @@ bool ChatHandler::HandleDebugGetItemStateCommand(char* args)
|
|||
}
|
||||
|
||||
Item* item = player->GetItemByPos(INVENTORY_SLOT_BAG_0, i);
|
||||
if (!item) { continue; }
|
||||
if (!item)
|
||||
{
|
||||
continue;
|
||||
}
|
||||
if (!item->IsBag())
|
||||
{
|
||||
if (item->GetState() == state)
|
||||
|
|
@ -489,7 +495,10 @@ bool ChatHandler::HandleDebugGetItemStateCommand(char* args)
|
|||
for (size_t i = 0; i < updateQueue.size(); ++i)
|
||||
{
|
||||
Item* item = updateQueue[i];
|
||||
if (!item) { continue; }
|
||||
if (!item)
|
||||
{
|
||||
continue;
|
||||
}
|
||||
|
||||
Bag* container = item->GetContainer();
|
||||
uint8 bag_slot = container ? container->GetSlot() : uint8(INVENTORY_SLOT_BAG_0);
|
||||
|
|
@ -524,7 +533,10 @@ bool ChatHandler::HandleDebugGetItemStateCommand(char* args)
|
|||
}
|
||||
|
||||
Item* item = player->GetItemByPos(INVENTORY_SLOT_BAG_0, i);
|
||||
if (!item) { continue; }
|
||||
if (!item)
|
||||
{
|
||||
continue;
|
||||
}
|
||||
|
||||
if (item->GetSlot() != i)
|
||||
{
|
||||
|
|
@ -587,7 +599,10 @@ bool ChatHandler::HandleDebugGetItemStateCommand(char* args)
|
|||
for (uint8 j = 0; j < bag->GetBagSize(); ++j)
|
||||
{
|
||||
Item* item2 = bag->GetItemByPos(j);
|
||||
if (!item2) { continue; }
|
||||
if (!item2)
|
||||
{
|
||||
continue;
|
||||
}
|
||||
|
||||
if (item2->GetSlot() != j)
|
||||
{
|
||||
|
|
@ -658,7 +673,10 @@ bool ChatHandler::HandleDebugGetItemStateCommand(char* args)
|
|||
for (size_t i = 0; i < updateQueue.size(); ++i)
|
||||
{
|
||||
Item* item = updateQueue[i];
|
||||
if (!item) { continue; }
|
||||
if (!item)
|
||||
{
|
||||
continue;
|
||||
}
|
||||
|
||||
if (item->GetOwnerGuid() != player->GetObjectGuid())
|
||||
{
|
||||
|
|
@ -675,7 +693,10 @@ bool ChatHandler::HandleDebugGetItemStateCommand(char* args)
|
|||
error = true; continue;
|
||||
}
|
||||
|
||||
if (item->GetState() == ITEM_REMOVED) { continue; }
|
||||
if (item->GetState() == ITEM_REMOVED)
|
||||
{
|
||||
continue;
|
||||
}
|
||||
Item* test = player->GetItemByPos(item->GetBagSlot(), item->GetSlot());
|
||||
|
||||
if (test == NULL)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue