summaryrefslogtreecommitdiff
path: root/src/net/tmwa/playerhandler.cpp
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2011-04-14 21:41:38 +0300
committerAndrei Karas <akaras@inbox.ru>2011-04-14 21:41:38 +0300
commit1884c7ebfce2f9a2723da41be09cde5e7e14938e (patch)
treebd0ca87ffdacdb97af37eaf2fcdd835f7ebe877e /src/net/tmwa/playerhandler.cpp
parent91a0b8f7e497be66225e0e24679bb515daefe7cf (diff)
downloadplus-1884c7ebfce2f9a2723da41be09cde5e7e14938e.tar.gz
plus-1884c7ebfce2f9a2723da41be09cde5e7e14938e.tar.bz2
plus-1884c7ebfce2f9a2723da41be09cde5e7e14938e.tar.xz
plus-1884c7ebfce2f9a2723da41be09cde5e7e14938e.zip
Stop protected pickups flood.
Diffstat (limited to 'src/net/tmwa/playerhandler.cpp')
-rw-r--r--src/net/tmwa/playerhandler.cpp5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/net/tmwa/playerhandler.cpp b/src/net/tmwa/playerhandler.cpp
index 3f8bdab7b..50f47e532 100644
--- a/src/net/tmwa/playerhandler.cpp
+++ b/src/net/tmwa/playerhandler.cpp
@@ -41,6 +41,7 @@
#include "net/tmwa/protocol.h"
#include "net/tmwa/npchandler.h"
+#include "net/tmwa/inventoryhandler.h"
#include "utils/stringutils.h"
#include "utils/gettext.h"
@@ -685,6 +686,10 @@ void PlayerHandler::pickUp(FloorItem *floorItem)
MessageOut outMsg(CMSG_ITEM_PICKUP);
outMsg.writeInt32(floorItem->getId());
+ TmwAthena::InventoryHandler *handler =
+ static_cast<TmwAthena::InventoryHandler*>(Net::getInventoryHandler());
+ if (handler)
+ handler->pushPickup(floorItem->getId());
}
void PlayerHandler::setDirection(char direction)