summaryrefslogtreecommitdiff
path: root/src/gui/viewport.cpp
diff options
context:
space:
mode:
authorBlueSansDouze <bluesansdouze@gmail.com>2010-01-13 13:45:27 +0100
committerBlueSansDouze <bluesansdouze@gmail.com>2010-01-13 14:22:44 +0100
commit94bfab1a7d1ac3626d15c30b8c6668de9455f3ed (patch)
treee569de48e7553e86d2abf0822c2646c4b1c1f95a /src/gui/viewport.cpp
parent61959f6a04c6a6712b5334ebd6bf21da4736431f (diff)
downloadmana-client-94bfab1a7d1ac3626d15c30b8c6668de9455f3ed.tar.gz
mana-client-94bfab1a7d1ac3626d15c30b8c6668de9455f3ed.tar.bz2
mana-client-94bfab1a7d1ac3626d15c30b8c6668de9455f3ed.tar.xz
mana-client-94bfab1a7d1ac3626d15c30b8c6668de9455f3ed.zip
Adds a follow manager for users
Right click contextual menu on player "follow" entry Cancel the following by moving with mouse or keys Adds a special behavior for map changes
Diffstat (limited to 'src/gui/viewport.cpp')
-rw-r--r--src/gui/viewport.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/gui/viewport.cpp b/src/gui/viewport.cpp
index eb06ba0e..ec8cf341 100644
--- a/src/gui/viewport.cpp
+++ b/src/gui/viewport.cpp
@@ -390,6 +390,7 @@ void Viewport::mousePressed(gcn::MouseEvent &event)
else
{
player_node->stopAttack();
+ player_node->cancelFollow();
mPlayerFollowMouse = true;
// Make the player go to the mouse position