diff options
author | Guillaume Melquiond <guillaume.melquiond@gmail.com> | 2007-01-04 22:28:08 +0000 |
---|---|---|
committer | Guillaume Melquiond <guillaume.melquiond@gmail.com> | 2007-01-04 22:28:08 +0000 |
commit | 90290b7aaf2a55187598e67c31d33f5735f574ce (patch) | |
tree | 64826ee1d40e993ab70c9d6f077ded33c747edf0 /src/localplayer.cpp | |
parent | 4eec29ac0f6a9b05562ac0fbe3d4e5d7e82deeac (diff) | |
download | mana-90290b7aaf2a55187598e67c31d33f5735f574ce.tar.gz mana-90290b7aaf2a55187598e67c31d33f5735f574ce.tar.bz2 mana-90290b7aaf2a55187598e67c31d33f5735f574ce.tar.xz mana-90290b7aaf2a55187598e67c31d33f5735f574ce.zip |
Client-side hack for picking up items.
Diffstat (limited to 'src/localplayer.cpp')
-rw-r--r-- | src/localplayer.cpp | 7 |
1 files changed, 2 insertions, 5 deletions
diff --git a/src/localplayer.cpp b/src/localplayer.cpp index 8076c538..b3e13a2a 100644 --- a/src/localplayer.cpp +++ b/src/localplayer.cpp @@ -152,11 +152,8 @@ void LocalPlayer::pickUp(FloorItem *item) int dy = item->getY() - mY / 32; if (dx * dx + dy * dy < 4) { - // XXX Convert for new server - /* - MessageOut outMsg(CMSG_ITEM_PICKUP); - outMsg.writeLong(item->getId()); - */ + int id = item->getId(); + Net::GameServer::Player::pickUp(id >> 16, id & 0xFFFF); mPickUpTarget = NULL; } else { setDestination(item->getX() * 32 + 16, item->getY() * 32 + 16); |