Code Style (game + scripts only):

"==" --> " == " (when needed)

--HG--
branch : trunk
This commit is contained in:
Spp committed 2010-04-07 23:25:02 +02:00
1 parent 49d05ba9aa
commit 2454c290b8
98 files changed
+738 -738

No files matched your search

+11 -11
View File
@@ -41,10 +41,10 @@ void WorldSession::HandleSplitItemOpcode(WorldPacket & recv_data)
uint16 src = ((srcbag << 8) | srcslot);
uint16 dst = ((dstbag << 8) | dstslot);
if (src==dst)
if (src == dst)
return;
if (count==0)
if (count == 0)
return; //check count - if zero it's fake packet
if (!_player->IsValidPos(srcbag,srcslot))
@@ -71,7 +71,7 @@ void WorldSession::HandleSwapInvItemOpcode(WorldPacket & recv_data)
//sLog.outDebug("STORAGE: receive srcslot = %u, dstslot = %u", srcslot, dstslot);
// prevent attempt swap same item to current position generated by client at special checting sequence
if (srcslot==dstslot)
if (srcslot == dstslot)
return;
if (!_player->IsValidPos(INVENTORY_SLOT_BAG_0,srcslot))
@@ -123,7 +123,7 @@ void WorldSession::HandleSwapItem(WorldPacket & recv_data)
uint16 dst = ((dstbag << 8) | dstslot);
// prevent attempt swap same item to current position generated by client at special checting sequence
if (src==dst)
if (src == dst)
return;
if (!_player->IsValidPos(srcbag,srcslot))
@@ -169,7 +169,7 @@ void WorldSession::HandleAutoEquipItemOpcode(WorldPacket & recv_data)
}
uint16 src = pSrcItem->GetPos();
if (dest==src) // prevent equip in same slot, only at cheat
if (dest == src) // prevent equip in same slot, only at cheat
return;
Item *pDstItem = _player->GetItemByPos(dest);
@@ -529,14 +529,14 @@ void WorldSession::HandleSellItemOpcode(WorldPacket & recv_data)
}
// prevent sell currently looted item
if (_player->GetLootGUID()==pItem->GetGUID())
if (_player->GetLootGUID() == pItem->GetGUID())
{
_player->SendSellError(SELL_ERR_CANT_SELL_ITEM, pCreature, itemguid, 0);
return;
}
// special case at auto sell (sell all)
if (count==0)
if (count == 0)
{
count = pItem->GetCount();
}
@@ -817,7 +817,7 @@ void WorldSession::HandleAutoStoreBagItemOpcode(WorldPacket & recv_data)
}
// no-op: placed in same slot
if (dest.size()==1 && dest[0].pos==src)
if (dest.size() == 1 && dest[0].pos == src)
{
// just remove grey item state
_player->SendEquipError(EQUIP_ERR_NONE, pItem, NULL);
@@ -1049,7 +1049,7 @@ void WorldSession::HandleWrapItemOpcode(WorldPacket& recv_data)
return;
}
if (item==gift) // not possable with pacjket from real client
if (item == gift) // not possable with pacjket from real client
{
_player->SendEquipError(EQUIP_ERR_WRAPPED_CANT_BE_WRAPPED, item, NULL);
return;
@@ -1109,7 +1109,7 @@ void WorldSession::HandleWrapItemOpcode(WorldPacket& recv_data)
item->SetUInt32Value(ITEM_FIELD_FLAGS, ITEM_FLAGS_WRAPPED);
item->SetState(ITEM_CHANGED, _player);
if (item->GetState()==ITEM_NEW) // save new item, to have alway for `character_gifts` record in `item_instance`
if (item->GetState() == ITEM_NEW) // save new item, to have alway for `character_gifts` record in `item_instance`
{
// after save it will be impossible to remove the item from the queue
item->RemoveFromUpdateQueueOf(_player);
@@ -1209,7 +1209,7 @@ void WorldSession::HandleSocketOpcode(WorldPacket& recv_data)
{
for (int j = 0; j < MAX_GEM_SOCKETS; ++j)
{
if (i==j) // skip self
if (i == j) // skip self
continue;
if (Gems[j])