summaryrefslogtreecommitdiff
path: root/src/gui/npcdialog.cpp
diff options
context:
space:
mode:
authorJared Adams <jaxad0127@gmail.com>2010-08-01 22:05:46 -0600
committerJared Adams <jaxad0127@gmail.com>2010-08-01 22:45:31 -0600
commitcec8045dcdad05d76141d4e27c8c9e72696ce7dc (patch)
tree0c7cded281b0ff01b2f0f0d74f44fc88e2622533 /src/gui/npcdialog.cpp
parenta3e61c0e830c46b51c0d135962ad361c02b93243 (diff)
downloadmana-client-cec8045dcdad05d76141d4e27c8c9e72696ce7dc.tar.gz
mana-client-cec8045dcdad05d76141d4e27c8c9e72696ce7dc.tar.bz2
mana-client-cec8045dcdad05d76141d4e27c8c9e72696ce7dc.tar.xz
mana-client-cec8045dcdad05d76141d4e27c8c9e72696ce7dc.zip
Remove isActive methods from NPC dialogs and InventoryWindow
Uses counts in PlayerInfo instead. Reviewed-by: Chuck Miller
Diffstat (limited to 'src/gui/npcdialog.cpp')
-rw-r--r--src/gui/npcdialog.cpp5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/gui/npcdialog.cpp b/src/gui/npcdialog.cpp
index 828ed776..c9eaff10 100644
--- a/src/gui/npcdialog.cpp
+++ b/src/gui/npcdialog.cpp
@@ -22,6 +22,7 @@
#include "gui/npcdialog.h"
#include "configuration.h"
+#include "playerinfo.h"
#include "gui/setup.h"
@@ -123,6 +124,8 @@ NpcDialog::NpcDialog(int npcId)
requestFocus();
config.addListener("logNpcInGui", this);
+ PlayerInfo::setNPCInteractionCount(PlayerInfo::getNPCInteractionCount()
+ + 1);
}
NpcDialog::~NpcDialog()
@@ -139,6 +142,8 @@ NpcDialog::~NpcDialog()
instances.remove(this);
config.removeListener("logNpcInGui", this);
+ PlayerInfo::setNPCInteractionCount(PlayerInfo::getNPCInteractionCount()
+ - 1);
}
void NpcDialog::setText(const std::string &text)