summaryrefslogtreecommitdiff
path: root/src/being/being.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/being/being.cpp')
-rw-r--r--src/being/being.cpp10
1 files changed, 9 insertions, 1 deletions
diff --git a/src/being/being.cpp b/src/being/being.cpp
index 60b87914c..97fad3c59 100644
--- a/src/being/being.cpp
+++ b/src/being/being.cpp
@@ -175,6 +175,7 @@ Being::Being(const int id,
mSpriteHide(new int[20]),
mSpriteDraw(new int[20]),
mComment(),
+ mBuyBoard(),
mSellBoard(),
mPets(),
mOwner(nullptr),
@@ -3533,11 +3534,18 @@ void Being::setChat(ChatObject *const obj)
void Being::setSellBoard(const std::string &text)
{
- mShop = !text.empty();
+ mShop = !text.empty() || !mBuyBoard.empty();
mSellBoard = text;
updateName();
}
+void Being::setBuyBoard(const std::string &text)
+{
+ mShop = !text.empty() || !mSellBoard.empty();
+ mBuyBoard = text;
+ updateName();
+}
+
void Being::enableShop(const bool b)
{
mShop = b;