summaryrefslogtreecommitdiff
path: root/src/localplayer.cpp
diff options
context:
space:
mode:
authorYohann Ferreira <yohann_dot_ferreira_at_orange_dot_efer>2011-03-17 20:07:03 +0100
committerYohann Ferreira <yohann_dot_ferreira_at_orange_dot_efer>2011-03-17 20:07:03 +0100
commit3c8e99cdfeee6b4db1dc56941659b94445601618 (patch)
tree5bff0aeb5f033d5cd0c2580275182e826ecbfd67 /src/localplayer.cpp
parent7e8d7f89c5d0aa07159e9b43ea39334907bcab1f (diff)
downloadmana-3c8e99cdfeee6b4db1dc56941659b94445601618.tar.gz
mana-3c8e99cdfeee6b4db1dc56941659b94445601618.tar.bz2
mana-3c8e99cdfeee6b4db1dc56941659b94445601618.tar.xz
mana-3c8e99cdfeee6b4db1dc56941659b94445601618.zip
Fixed pick up using keyboard for both servers.
The character picks up one item at a time (to remain kinda realistic) and turns to the item picked up.
Diffstat (limited to 'src/localplayer.cpp')
-rw-r--r--src/localplayer.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/localplayer.cpp b/src/localplayer.cpp
index 7daceb0f..8e75333f 100644
--- a/src/localplayer.cpp
+++ b/src/localplayer.cpp
@@ -604,8 +604,8 @@ void LocalPlayer::pickUp(FloorItem *item)
}
else
{
- setDestination(item->getPixelX() + tileWidth / 2,
- item->getPixelY() + tileHeight / 2);
+ setDestination(item->getTileX() * tileWidth + tileWidth / 2,
+ item->getTileY() * tileHeight + tileHeight / 2);
mPickUpTarget = item;
}
}