summaryrefslogtreecommitdiff
path: root/src/localplayer.cpp
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2011-08-16 22:52:46 +0300
committerAndrei Karas <akaras@inbox.ru>2011-08-16 22:52:46 +0300
commitfa68f4ad4b2f776af834f8209b51761f6c2ba125 (patch)
treee6ffa76bedd1ed8bae3b859814482d3cf6359183 /src/localplayer.cpp
parent658a7a325114783627c7c6c870bfe01791f9f63e (diff)
downloadmanaplus-fa68f4ad4b2f776af834f8209b51761f6c2ba125.tar.gz
manaplus-fa68f4ad4b2f776af834f8209b51761f6c2ba125.tar.bz2
manaplus-fa68f4ad4b2f776af834f8209b51761f6c2ba125.tar.xz
manaplus-fa68f4ad4b2f776af834f8209b51761f6c2ba125.zip
Show shop sign to other players only if shop is not empty.
Diffstat (limited to 'src/localplayer.cpp')
-rw-r--r--src/localplayer.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/localplayer.cpp b/src/localplayer.cpp
index 9f0a7c5f3..0dcf7e7c2 100644
--- a/src/localplayer.cpp
+++ b/src/localplayer.cpp
@@ -50,6 +50,7 @@
#include "gui/okdialog.h"
#include "gui/outfitwindow.h"
#include "gui/palette.h"
+#include "gui/shopwindow.h"
#include "gui/skilldialog.h"
#include "gui/socialwindow.h"
#include "gui/statuswindow.h"
@@ -344,7 +345,7 @@ void LocalPlayer::logic()
if (mEnableAdvert && !mBlockAdvert && mAdvertTime < cur_time)
{
Uint8 smile = FLAG_SPECIAL;
- if (mTradebot)
+ if (mTradebot && shopWindow && !shopWindow->isShopEmpty())
smile += FLAG_SHOP;
if (mAwayMode)