diff options
author | Andrei Karas <akaras@inbox.ru> | 2011-08-16 22:52:46 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2011-08-16 22:52:46 +0300 |
commit | fa68f4ad4b2f776af834f8209b51761f6c2ba125 (patch) | |
tree | e6ffa76bedd1ed8bae3b859814482d3cf6359183 /src/gui/widgets/shopitems.cpp | |
parent | 658a7a325114783627c7c6c870bfe01791f9f63e (diff) | |
download | plus-fa68f4ad4b2f776af834f8209b51761f6c2ba125.tar.gz plus-fa68f4ad4b2f776af834f8209b51761f6c2ba125.tar.bz2 plus-fa68f4ad4b2f776af834f8209b51761f6c2ba125.tar.xz plus-fa68f4ad4b2f776af834f8209b51761f6c2ba125.zip |
Show shop sign to other players only if shop is not empty.
Diffstat (limited to 'src/gui/widgets/shopitems.cpp')
-rw-r--r-- | src/gui/widgets/shopitems.cpp | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/gui/widgets/shopitems.cpp b/src/gui/widgets/shopitems.cpp index c5bcd88c4..e15445b77 100644 --- a/src/gui/widgets/shopitems.cpp +++ b/src/gui/widgets/shopitems.cpp @@ -43,6 +43,11 @@ int ShopItems::getNumberOfElements() return static_cast<int>(mShopItems.size()); } +bool ShopItems::empty() +{ + return mShopItems.empty(); +} + std::string ShopItems::getElementAt(int i) { if (i < 0 || static_cast<unsigned>(i) >= mShopItems.size() |