diff options
Diffstat (limited to 'src/Entities/Player.cpp')
-rw-r--r-- | src/Entities/Player.cpp | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/src/Entities/Player.cpp b/src/Entities/Player.cpp index 761337a30..e4192140a 100644 --- a/src/Entities/Player.cpp +++ b/src/Entities/Player.cpp @@ -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; |