summaryrefslogtreecommitdiff
path: root/src/localplayer.cpp
diff options
context:
space:
mode:
authorYohann Ferreira <yohann_dot_ferreira_at_orange_dot_efer>2011-09-29 00:29:56 +0200
committerYohann Ferreira <yohann_dot_ferreira_at_orange_dot_efer>2011-09-29 00:29:56 +0200
commitfd394bcd24cb135f01e684717b4dadb7d2200367 (patch)
tree0ddcacca694e79488e15e0ae49ae74b8b0f96f78 /src/localplayer.cpp
parenta2bfeabfa7dda816daddbe113a3ae33618b32284 (diff)
downloadmana-client-fd394bcd24cb135f01e684717b4dadb7d2200367.tar.gz
mana-client-fd394bcd24cb135f01e684717b4dadb7d2200367.tar.bz2
mana-client-fd394bcd24cb135f01e684717b4dadb7d2200367.tar.xz
mana-client-fd394bcd24cb135f01e684717b4dadb7d2200367.zip
Fixed the player direction update when picking up an item using the mouse.
This also happened when trying to reach a monster. I didn't fix the pick up once the destination is reached as the fix will be a little more complex.
Diffstat (limited to 'src/localplayer.cpp')
-rw-r--r--src/localplayer.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/localplayer.cpp b/src/localplayer.cpp
index 16382adc..0a041021 100644
--- a/src/localplayer.cpp
+++ b/src/localplayer.cpp
@@ -620,6 +620,7 @@ void LocalPlayer::pickUp(FloorItem *item)
}
else
{
+ pathSetByMouse();
setDestination(item->getTileX() * tileWidth + tileWidth / 2,
item->getTileY() * tileHeight + tileHeight / 2);
mPickUpTarget = item;