summaryrefslogtreecommitdiff
path: root/src/gui/popupmenu.cpp
diff options
context:
space:
mode:
authorJared Adams <jaxad0127@gmail.com>2009-05-12 16:03:07 -0600
committerJared Adams <jaxad0127@gmail.com>2009-05-12 16:03:58 -0600
commit7b0309c45591a98846b650e789829a0b0de309e9 (patch)
tree4740e6bae651c430d18560cc95f0b59d12f70090 /src/gui/popupmenu.cpp
parent715105c4bf1fadec717c396c8b8283dbacd8cb70 (diff)
downloadmana-7b0309c45591a98846b650e789829a0b0de309e9.tar.gz
mana-7b0309c45591a98846b650e789829a0b0de309e9.tar.bz2
mana-7b0309c45591a98846b650e789829a0b0de309e9.tar.xz
mana-7b0309c45591a98846b650e789829a0b0de309e9.zip
Adjust the context menu's invite options
Guild will no longer show for eAthena builds and party will only show if you are in a party.
Diffstat (limited to 'src/gui/popupmenu.cpp')
-rw-r--r--src/gui/popupmenu.cpp5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/gui/popupmenu.cpp b/src/gui/popupmenu.cpp
index 2dcf2628..fdb8c5ac 100644
--- a/src/gui/popupmenu.cpp
+++ b/src/gui/popupmenu.cpp
@@ -112,8 +112,11 @@ void PopupMenu::showPopup(int x, int y, Being *being)
//mBrowserBox->addRow(_(strprintf("@@follow|Follow %s@@"), name.c_str()));
//mBrowserBox->addRow(_("@@buddy|Add ") + name + " to Buddy List@@");
+#ifdef TMWSERV_SUPPORT
mBrowserBox->addRow(strprintf(_("@@guild|Invite %s to join your guild@@"), name.c_str()));
- mBrowserBox->addRow(strprintf(_("@@party|Invite %s to join your party@@"), name.c_str()));
+#endif
+ if (player_node->isInParty())
+ mBrowserBox->addRow(strprintf(_("@@party|Invite %s to join your party@@"), name.c_str()));
/*
mBrowserBox->addRow("##3---");