1
0

Implemented draggingitem API.

This commit is contained in:
Lane Kolbly
2017-07-06 22:27:04 -05:00
committed by Lukas Pioch
parent b2634bade0
commit a561886bf3
3 changed files with 38 additions and 1 deletions

View File

@@ -1880,6 +1880,19 @@ AString cPlayer::GetPlayerListName(void) const
void cPlayer::SetDraggingItem(const cItem & a_Item)
{
if (GetWindow() != nullptr)
{
m_DraggingItem = a_Item;
GetClientHandle()->SendInventorySlot(-1, -1, m_DraggingItem);
}
}
void cPlayer::TossEquippedItem(char a_Amount)
{
cItems Drops;