summaryrefslogtreecommitdiff
path: root/src/gui
diff options
context:
space:
mode:
authorMadCamel <madcamel@gmail.com>2009-04-05 21:18:07 -0400
committerJared Adams <jaxad0127@gmail.com>2009-04-09 06:50:44 -0600
commitad290061e608a232ed04d587c7b742217f552898 (patch)
tree547878b25d769d5bc45c69f736af7e3c50ff0e6b /src/gui
parent801da408e5756f19ee50bdc463f2fc6390573b65 (diff)
downloadmana-ad290061e608a232ed04d587c7b742217f552898.tar.gz
mana-ad290061e608a232ed04d587c7b742217f552898.tar.bz2
mana-ad290061e608a232ed04d587c7b742217f552898.tar.xz
mana-ad290061e608a232ed04d587c7b742217f552898.zip
QOAL's do not walk with the mouse while sitting
Diffstat (limited to 'src/gui')
-rw-r--r--src/gui/viewport.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/gui/viewport.cpp b/src/gui/viewport.cpp
index 7b797d5b..6dd1cb92 100644
--- a/src/gui/viewport.cpp
+++ b/src/gui/viewport.cpp
@@ -376,6 +376,10 @@ void Viewport::mousePressed(gcn::MouseEvent &event)
{
player_node->pickUp(item);
}
+ else if (player_node->mAction == Being::SIT)
+ {
+ return;
+ }
// Just walk around
else
{