diff options
author | Yohann Ferreira <yohann_dot_ferreira_at_orange_dot_efer> | 2012-02-02 19:29:34 +0100 |
---|---|---|
committer | Yohann Ferreira <yohann_dot_ferreira_at_orange_dot_efer> | 2012-02-03 14:43:42 +0100 |
commit | e2f9e7cf25d3dd2b239496945a83a0d7c6c4e86e (patch) | |
tree | fbc04091965c19fdfa79c36031eecd4e3220ecbd /src/localplayer.cpp | |
parent | 94deb596ae86bfe453c9d88e85266caae26e3980 (diff) | |
download | mana-e2f9e7cf25d3dd2b239496945a83a0d7c6c4e86e.tar.gz mana-e2f9e7cf25d3dd2b239496945a83a0d7c6c4e86e.tar.bz2 mana-e2f9e7cf25d3dd2b239496945a83a0d7c6c4e86e.tar.xz mana-e2f9e7cf25d3dd2b239496945a83a0d7c6c4e86e.zip |
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
Diffstat (limited to 'src/localplayer.cpp')
-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 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); } |