summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2013-02-21 02:07:46 +0300
committerAndrei Karas <akaras@inbox.ru>2013-02-21 02:07:46 +0300
commitf6f2a8072c517ee47e77979db9dbb9ecb3430cb5 (patch)
treee2a1474d083313c9aa636085dcbeb2e6edbc5efb
parentde51abd18f3cd9cd486837da69264b841d6cfff6 (diff)
downloadplus-f6f2a8072c517ee47e77979db9dbb9ecb3430cb5.tar.gz
plus-f6f2a8072c517ee47e77979db9dbb9ecb3430cb5.tar.bz2
plus-f6f2a8072c517ee47e77979db9dbb9ecb3430cb5.tar.xz
plus-f6f2a8072c517ee47e77979db9dbb9ecb3430cb5.zip
fix name signs update.
Some times $|A can not be visible in player name.
-rw-r--r--src/being.cpp4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/being.cpp b/src/being.cpp
index 4f7cd84bb..0f64cace3 100644
--- a/src/being.cpp
+++ b/src/being.cpp
@@ -1938,7 +1938,7 @@ bool Being::updateFromCache()
setIp(entry->getIp());
mAdvanced = entry->isAdvanced();
- if (entry->isAdvanced())
+ if (mAdvanced)
{
const int flags = entry->getFlags();
mShop = ((flags & FLAG_SHOP) != 0);
@@ -2686,6 +2686,8 @@ void Being::setState(const uint8_t state)
if (needUpdate)
{
+ if (shop || away || inactive)
+ mAdvanced = true;
updateName();
addToCache();
}