From fd394bcd24cb135f01e684717b4dadb7d2200367 Mon Sep 17 00:00:00 2001 From: Yohann Ferreira Date: Thu, 29 Sep 2011 00:29:56 +0200 Subject: 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. --- src/localplayer.cpp | 1 + 1 file changed, 1 insertion(+) (limited to 'src/localplayer.cpp') 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; -- cgit v1.2.3-70-g09d2