summaryrefslogtreecommitdiff
path: root/src/gui/popups/popupmenu.cpp
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2015-02-01 17:03:33 +0300
committerAndrei Karas <akaras@inbox.ru>2015-02-02 00:13:44 +0300
commit30f142d6a147885afef203cdc83326cccdb4bb75 (patch)
treedf3a2f37145ce2b2c5a1651d7fb285ae149cda42 /src/gui/popups/popupmenu.cpp
parent2464d9d85019711583ef830c2fdeae8a6772cb53 (diff)
downloadmanaverse-30f142d6a147885afef203cdc83326cccdb4bb75.tar.gz
manaverse-30f142d6a147885afef203cdc83326cccdb4bb75.tar.bz2
manaverse-30f142d6a147885afef203cdc83326cccdb4bb75.tar.xz
manaverse-30f142d6a147885afef203cdc83326cccdb4bb75.zip
eathena: Show shop status on seller.
Diffstat (limited to 'src/gui/popups/popupmenu.cpp')
-rw-r--r--src/gui/popups/popupmenu.cpp17
1 files changed, 7 insertions, 10 deletions
diff --git a/src/gui/popups/popupmenu.cpp b/src/gui/popups/popupmenu.cpp
index 5bed32f13..48bb4100c 100644
--- a/src/gui/popups/popupmenu.cpp
+++ b/src/gui/popups/popupmenu.cpp
@@ -2365,17 +2365,14 @@ void PopupMenu::addBuySell(const Being *const being)
if (player_relations.getDefault() & PlayerRelation::TRADE)
{
mBrowserBox->addRow("##3---");
- if (being->isAdvanced())
+ if (being->isShopEnabled())
{
- if (being->isShopEnabled())
- {
- // TRANSLATORS: popup menu item
- // TRANSLATORS: buy item
- mBrowserBox->addRow("/buy 'NAME'", _("Buy"));
- // TRANSLATORS: popup menu item
- // TRANSLATORS: sell item
- mBrowserBox->addRow("/sell 'NAME'", _("Sell"));
- }
+ // TRANSLATORS: popup menu item
+ // TRANSLATORS: buy item
+ mBrowserBox->addRow("/buy 'NAME'", _("Buy"));
+ // TRANSLATORS: popup menu item
+ // TRANSLATORS: sell item
+ mBrowserBox->addRow("/sell 'NAME'", _("Sell"));
}
else
{