summaryrefslogtreecommitdiff
path: root/src/gui/viewport.cpp
diff options
context:
space:
mode:
authorJared Adams <jaxad0127@gmail.com>2010-08-01 21:32:16 -0600
committerJared Adams <jaxad0127@gmail.com>2010-08-01 21:35:09 -0600
commita3e61c0e830c46b51c0d135962ad361c02b93243 (patch)
tree3b94948be5750c8f968ea89723799eb4f119c063 /src/gui/viewport.cpp
parent0e189bbe81c88283438aabb4fec3ba30920d3a36 (diff)
downloadmana-client-a3e61c0e830c46b51c0d135962ad361c02b93243.tar.gz
mana-client-a3e61c0e830c46b51c0d135962ad361c02b93243.tar.bz2
mana-client-a3e61c0e830c46b51c0d135962ad361c02b93243.tar.xz
mana-client-a3e61c0e830c46b51c0d135962ad361c02b93243.zip
Remove isActive methods from buy/sell windows
Uses a state variable in PlayerInfo instead. Moves isTalking from Being to PlayerInfo. Also some small cleanups. Reviewed-by: Chuck Miller
Diffstat (limited to 'src/gui/viewport.cpp')
-rw-r--r--src/gui/viewport.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/gui/viewport.cpp b/src/gui/viewport.cpp
index f1cd38e4..fc9adab1 100644
--- a/src/gui/viewport.cpp
+++ b/src/gui/viewport.cpp
@@ -28,6 +28,7 @@
#include "keyboardconfig.h"
#include "localplayer.h"
#include "map.h"
+#include "playerinfo.h"
#include "textmanager.h"
#include "gui/gui.h"
@@ -345,7 +346,7 @@ void Viewport::mousePressed(gcn::MouseEvent &event)
return;
// Check if we are busy
- if (Being::isTalking())
+ if (PlayerInfo::isTalking())
return;
mPlayerFollowMouse = false;