From e2f9e7cf25d3dd2b239496945a83a0d7c6c4e86e Mon Sep 17 00:00:00 2001 From: Yohann Ferreira Date: Thu, 2 Feb 2012 19:29:34 +0100 Subject: Fixed the player character's direction update when clicking on a monster. The direction is updated in those case only when the engine knows it's the mouse requesting the destination. Reviewed-by: Erik Schilling --- src/localplayer.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/src/localplayer.cpp b/src/localplayer.cpp index 7ee5753f..99cdca0d 100644 --- a/src/localplayer.cpp +++ b/src/localplayer.cpp @@ -955,6 +955,7 @@ void LocalPlayer::setGotoTarget(Being *target) mTarget = target; mGoingToTarget = true; const Vector &targetPos = target->getPosition(); + pathSetByMouse(); setDestination(targetPos.x, targetPos.y); } -- cgit v1.2.3-60-g2f50