From c6997f8ee41d5f85dd8a1269e82982e1ab0b5c74 Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Wed, 11 Nov 2015 21:29:51 +0300 Subject: In personal shops in sell dialog shop no existing items with amount 0 and disabled. Only for legacy servers. --- src/shopitem.h | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'src/shopitem.h') diff --git a/src/shopitem.h b/src/shopitem.h index bfe7fe39a..36ccf3c65 100644 --- a/src/shopitem.h +++ b/src/shopitem.h @@ -148,6 +148,12 @@ class ShopItem final : public Item int getUsedQuantity() const A_WARN_UNUSED { return mUsedQuantity; } + void setDisabled(const bool b) + { mDisabled = b; } + + bool getDisabled() const A_WARN_UNUSED + { return mDisabled; } + protected: void updateDisplayName(const int quantity); @@ -166,6 +172,7 @@ class ShopItem final : public Item int mUsedQuantity; bool mShowQuantity; bool mVisible; + bool mDisabled; }; #endif // SHOPITEM_H -- cgit v1.2.3-70-g09d2