diff options
author | Jared Adams <jaxad0127@gmail.com> | 2009-07-13 19:52:12 -0600 |
---|---|---|
committer | Jared Adams <jaxad0127@gmail.com> | 2009-07-13 19:52:12 -0600 |
commit | 666211542df4fd4fb0f9a1c936b54f6405ef09ba (patch) | |
tree | 478ea55ae467406f2f90f8941a2c5bc2a74a48db /src/net/tmwserv/playerhandler.cpp | |
parent | 6c764b3c95d0c078c5ccebac607517353e64dc55 (diff) | |
download | mana-client-666211542df4fd4fb0f9a1c936b54f6405ef09ba.tar.gz mana-client-666211542df4fd4fb0f9a1c936b54f6405ef09ba.tar.bz2 mana-client-666211542df4fd4fb0f9a1c936b54f6405ef09ba.tar.xz mana-client-666211542df4fd4fb0f9a1c936b54f6405ef09ba.zip |
Some item pickup cleaning
Still need to find where to attach LocalPlayer::pickedUp for TMWServ.
Diffstat (limited to 'src/net/tmwserv/playerhandler.cpp')
-rw-r--r-- | src/net/tmwserv/playerhandler.cpp | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/src/net/tmwserv/playerhandler.cpp b/src/net/tmwserv/playerhandler.cpp index 825da8a4..6cf81496 100644 --- a/src/net/tmwserv/playerhandler.cpp +++ b/src/net/tmwserv/playerhandler.cpp @@ -335,7 +335,10 @@ void PlayerHandler::decreaseStat(LocalPlayer::Attribute attr) void PlayerHandler::pickUp(FloorItem *floorItem) { int id = floorItem->getId(); - Net::GameServer::Player::pickUp(id >> 16, id & 0xFFFF); + MessageOut msg(PGMSG_PICKUP); + msg.writeInt16(id >> 16); + msg.writeInt16(id & 0xFFFF); + Net::GameServer::connection->send(msg); } void PlayerHandler::setDirection(char direction) |