summaryrefslogtreecommitdiff
path: root/src/gui/popupmenu.cpp
diff options
context:
space:
mode:
authorMateusz Kaduk <mateusz.kaduk@gmail.com>2005-06-18 13:36:54 +0000
committerMateusz Kaduk <mateusz.kaduk@gmail.com>2005-06-18 13:36:54 +0000
commit6040daae3201e4a4cc55c2754c73225752fd4c5f (patch)
tree7f1c15a6bd50b6c1773077e28f736c11178c79d8 /src/gui/popupmenu.cpp
parent275b80eca0ecc71262b4ca8aeba6e7501f711d43 (diff)
downloadmana-6040daae3201e4a4cc55c2754c73225752fd4c5f.tar.gz
mana-6040daae3201e4a4cc55c2754c73225752fd4c5f.tar.bz2
mana-6040daae3201e4a4cc55c2754c73225752fd4c5f.tar.xz
mana-6040daae3201e4a4cc55c2754c73225752fd4c5f.zip
Showing buddyWindow
Diffstat (limited to 'src/gui/popupmenu.cpp')
-rw-r--r--src/gui/popupmenu.cpp6
1 files changed, 5 insertions, 1 deletions
diff --git a/src/gui/popupmenu.cpp b/src/gui/popupmenu.cpp
index c56bdfc8..205a768f 100644
--- a/src/gui/popupmenu.cpp
+++ b/src/gui/popupmenu.cpp
@@ -174,8 +174,12 @@ void PopupMenu::handleLink(const std::string& link)
}
// Add Buddy action
- else if (link == "buddy")
+ else if ((link == "buddy") && being && being->isPlayer())
{
+ if(!buddyWindow->isVisible())
+ buddyWindow->setVisible(true);
+
+ buddyWindow->addBuddy(being->name);
}
// Pick Up Floor Item action