From 50658d0b86e7fcd0ea92449310b1dbcc75237267 Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Thu, 19 Jul 2012 23:22:41 +0300 Subject: Block moving in storage is open. Move some code from being to playerinfo. --- src/gui/viewport.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'src/gui') diff --git a/src/gui/viewport.cpp b/src/gui/viewport.cpp index 319476591..2a8d36a60 100644 --- a/src/gui/viewport.cpp +++ b/src/gui/viewport.cpp @@ -33,6 +33,7 @@ #include "localplayer.h" #include "map.h" #include "maplayer.h" +#include "playerinfo.h" #include "textmanager.h" #include "gui/beingpopup.h" @@ -409,7 +410,7 @@ void Viewport::mousePressed(gcn::MouseEvent &event) // Check if we are busy // if commented, allow context menu if npc dialog open - if (Being::isTalking()) + if (PlayerInfo::isTalking()) return; const int pixelX = event.getX() + mPixelViewX; -- cgit v1.2.3-70-g09d2