summaryrefslogtreecommitdiff
path: root/src/gui/popupmenu.cpp
diff options
context:
space:
mode:
authorJared Adams <jaxad0127@gmail.com>2009-04-10 18:03:50 -0600
committerJared Adams <jaxad0127@gmail.com>2009-04-10 18:04:43 -0600
commit78cab005ab427e64ccdf8ba8f6ca7d4c6f6bd4b4 (patch)
treeebae0e6ceb8ec5efe9e894454e9988f5a40c83e9 /src/gui/popupmenu.cpp
parente48060430f9fae5c52fb32009a3e10e35e1817a2 (diff)
downloadmana-78cab005ab427e64ccdf8ba8f6ca7d4c6f6bd4b4.tar.gz
mana-78cab005ab427e64ccdf8ba8f6ca7d4c6f6bd4b4.tar.bz2
mana-78cab005ab427e64ccdf8ba8f6ca7d4c6f6bd4b4.tar.xz
mana-78cab005ab427e64ccdf8ba8f6ca7d4c6f6bd4b4.zip
Fix popup to prevent an item from showing on warps
Diffstat (limited to 'src/gui/popupmenu.cpp')
-rw-r--r--src/gui/popupmenu.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/gui/popupmenu.cpp b/src/gui/popupmenu.cpp
index 12531d89..e8af3122 100644
--- a/src/gui/popupmenu.cpp
+++ b/src/gui/popupmenu.cpp
@@ -75,7 +75,8 @@ void PopupMenu::showPopup(int x, int y, Being *being)
mBrowserBox->clearRows();
// Any being's name can be added to chat
- mBrowserBox->addRow(_("@@name|Add name to chat@@"));
+ if (being->getType() != Being::UNKNOWN)
+ mBrowserBox->addRow(_("@@name|Add name to chat@@"));
switch (being->getType())
{