diff options
author | Jared Adams <jaxad0127@gmail.com> | 2010-08-01 22:05:46 -0600 |
---|---|---|
committer | Jared Adams <jaxad0127@gmail.com> | 2010-08-01 22:45:31 -0600 |
commit | cec8045dcdad05d76141d4e27c8c9e72696ce7dc (patch) | |
tree | 0c7cded281b0ff01b2f0f0d74f44fc88e2622533 /src/gui/npcpostdialog.cpp | |
parent | a3e61c0e830c46b51c0d135962ad361c02b93243 (diff) | |
download | mana-cec8045dcdad05d76141d4e27c8c9e72696ce7dc.tar.gz mana-cec8045dcdad05d76141d4e27c8c9e72696ce7dc.tar.bz2 mana-cec8045dcdad05d76141d4e27c8c9e72696ce7dc.tar.xz mana-cec8045dcdad05d76141d4e27c8c9e72696ce7dc.zip |
Remove isActive methods from NPC dialogs and InventoryWindow
Uses counts in PlayerInfo instead.
Reviewed-by: Chuck Miller
Diffstat (limited to 'src/gui/npcpostdialog.cpp')
-rw-r--r-- | src/gui/npcpostdialog.cpp | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/gui/npcpostdialog.cpp b/src/gui/npcpostdialog.cpp index 74173ae9..6bc79017 100644 --- a/src/gui/npcpostdialog.cpp +++ b/src/gui/npcpostdialog.cpp @@ -22,6 +22,7 @@ #include "gui/npcpostdialog.h" #include "eventmanager.h" +#include "playerinfo.h" #include "gui/widgets/button.h" #include "gui/widgets/label.h" @@ -79,11 +80,14 @@ NpcPostDialog::NpcPostDialog(int npcId): instances.push_back(this); setVisible(true); + + PlayerInfo::setNPCPostCount(PlayerInfo::getNPCPostCount() + 1); } NpcPostDialog::~NpcPostDialog() { instances.remove(this); + PlayerInfo::setNPCPostCount(PlayerInfo::getNPCPostCount() - 1); } void NpcPostDialog::action(const gcn::ActionEvent &event) |