*Cleanup, proper indentation, and remove some wrong/irrelevant comments copied from custom patches..

--HG--
branch : trunk
This commit is contained in:
maximius committed 2009-12-18 13:41:30 -08:00
1 parent 89464472a9
commit dc1207139a
30 files changed
+195 -199

No files matched your search

+5 -5
View File
@@ -1393,7 +1393,7 @@ void WorldSession::HandleItemRefund(WorldPacket &recv_data)
sLog.outDebug("Item refund: item not refundable!");
return;
}
if(item->GetRefundExpiryTime() <= time(NULL)) // item refund has expired
{
WorldPacket data(SMSG_ITEM_REFUND);
@@ -1401,7 +1401,7 @@ void WorldSession::HandleItemRefund(WorldPacket &recv_data)
data << uint32(1); // error, abort refund
return;
}
WorldPacket data(SMSG_ITEM_REFUND);
data << uint64(guid); // guid?
data << uint32(0); // must be 0 or client side error in refund
@@ -1414,7 +1414,7 @@ void WorldSession::HandleItemRefund(WorldPacket &recv_data)
data << uint32(item->GetPaidExtendedCostCount(i));
}
SendPacket(&data);
// Grant back extendedcost items
uint32 count = 0;
uint32 itemid = 0;
@@ -1438,11 +1438,11 @@ void WorldSession::HandleItemRefund(WorldPacket &recv_data)
// Grant back Honor points
if (uint32 honorRefund = item->GetPaidHonorPoints() > 0)
_player->ModifyHonorPoints(honorRefund);
// Grant back Arena points
if (uint32 arenaRefund = item->GetPaidArenaPoints() > 0)
_player->ModifyArenaPoints(arenaRefund);
// Destroy item
_player->DestroyItemCount(item->GetEntry(), 1, true, true);
}