Fix CRLF.
--HG-- branch : trunk
This commit is contained in:
@@ -23985,20 +23985,20 @@ void Player::SendRefundInfo(Item *item)
|
|||||||
bool Player::AddItem(uint32 itemId, uint32 count)
|
bool Player::AddItem(uint32 itemId, uint32 count)
|
||||||
{
|
{
|
||||||
uint32 noSpaceForCount = 0;
|
uint32 noSpaceForCount = 0;
|
||||||
ItemPosCountVec dest;
|
ItemPosCountVec dest;
|
||||||
uint8 msg = CanStoreNewItem(NULL_BAG, NULL_SLOT, dest, itemId, count, &noSpaceForCount);
|
uint8 msg = CanStoreNewItem(NULL_BAG, NULL_SLOT, dest, itemId, count, &noSpaceForCount);
|
||||||
if (msg != EQUIP_ERR_OK)
|
if (msg != EQUIP_ERR_OK)
|
||||||
count = noSpaceForCount;
|
count = noSpaceForCount;
|
||||||
|
|
||||||
if (count == 0 || dest.empty())
|
if (count == 0 || dest.empty())
|
||||||
{
|
{
|
||||||
// -- TODO: Send to mailbox if no space
|
// -- TODO: Send to mailbox if no space
|
||||||
ChatHandler(this).PSendSysMessage("You don't have any space in your bags.");
|
ChatHandler(this).PSendSysMessage("You don't have any space in your bags.");
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
Item* item = StoreNewItem(dest, itemId, true, Item::GenerateItemRandomPropertyId(itemId));
|
Item* item = StoreNewItem(dest, itemId, true, Item::GenerateItemRandomPropertyId(itemId));
|
||||||
if(item)
|
if(item)
|
||||||
SendNewItem(item,count,true,false);
|
SendNewItem(item,count,true,false);
|
||||||
else
|
else
|
||||||
return false;
|
return false;
|
||||||
|
|||||||
Reference in New Issue
Block a user