summaryrefslogtreecommitdiff
path: root/src/net/ea/itemhandler.cpp
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2015-08-27 16:39:11 +0300
committerAndrei Karas <akaras@inbox.ru>2015-08-27 16:39:11 +0300
commit750a31150ed7fc4b3e7b295552207783f7e4a0d3 (patch)
tree983f2b4b8c1a8856dd731f7b9f4b78714e64ac0d /src/net/ea/itemhandler.cpp
parentf964252564162f70df2cda6b06b45245d0a383ad (diff)
downloadplus-750a31150ed7fc4b3e7b295552207783f7e4a0d3.tar.gz
plus-750a31150ed7fc4b3e7b295552207783f7e4a0d3.tar.bz2
plus-750a31150ed7fc4b3e7b295552207783f7e4a0d3.tar.xz
plus-750a31150ed7fc4b3e7b295552207783f7e4a0d3.zip
Move receive code from itemhandler into separate file.
Diffstat (limited to 'src/net/ea/itemhandler.cpp')
-rw-r--r--src/net/ea/itemhandler.cpp14
1 files changed, 2 insertions, 12 deletions
diff --git a/src/net/ea/itemhandler.cpp b/src/net/ea/itemhandler.cpp
index b8973c039..19b1e919d 100644
--- a/src/net/ea/itemhandler.cpp
+++ b/src/net/ea/itemhandler.cpp
@@ -26,6 +26,8 @@
#include "net/messagein.h"
+#include "net/ea/itemrecv.h"
+
#include "debug.h"
namespace Ea
@@ -39,16 +41,4 @@ ItemHandler::~ItemHandler()
{
}
-void ItemHandler::processItemRemove(Net::MessageIn &msg)
-{
- if (actorManager)
- {
- if (FloorItem *const item = actorManager
- ->findItem(msg.readBeingId("floor item id")))
- {
- actorManager->destroy(item);
- }
- }
-}
-
} // namespace Ea