diff options
author | Yohann Ferreira <yohann_dot_ferreira_at_orange_dot_efer> | 2011-09-29 00:29:56 +0200 |
---|---|---|
committer | Yohann Ferreira <yohann_dot_ferreira_at_orange_dot_efer> | 2011-09-29 00:29:56 +0200 |
commit | fd394bcd24cb135f01e684717b4dadb7d2200367 (patch) | |
tree | 0ddcacca694e79488e15e0ae49ae74b8b0f96f78 | |
parent | a2bfeabfa7dda816daddbe113a3ae33618b32284 (diff) | |
download | mana-fd394bcd24cb135f01e684717b4dadb7d2200367.tar.gz mana-fd394bcd24cb135f01e684717b4dadb7d2200367.tar.bz2 mana-fd394bcd24cb135f01e684717b4dadb7d2200367.tar.xz mana-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.
-rw-r--r-- | src/localplayer.cpp | 1 |
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; |