From 7b0309c45591a98846b650e789829a0b0de309e9 Mon Sep 17 00:00:00 2001 From: Jared Adams Date: Tue, 12 May 2009 16:03:07 -0600 Subject: 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. --- src/gui/popupmenu.cpp | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) 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---"); -- cgit v1.2.3-70-g09d2