diff options
author | Andrei Karas <akaras@inbox.ru> | 2015-08-27 16:39:11 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2015-08-27 16:39:11 +0300 |
commit | 750a31150ed7fc4b3e7b295552207783f7e4a0d3 (patch) | |
tree | 983f2b4b8c1a8856dd731f7b9f4b78714e64ac0d /src/net/ea/itemhandler.cpp | |
parent | f964252564162f70df2cda6b06b45245d0a383ad (diff) | |
download | ManaVerse-750a31150ed7fc4b3e7b295552207783f7e4a0d3.tar.gz ManaVerse-750a31150ed7fc4b3e7b295552207783f7e4a0d3.tar.bz2 ManaVerse-750a31150ed7fc4b3e7b295552207783f7e4a0d3.tar.xz ManaVerse-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.cpp | 14 |
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 |