diff options
author | Andrei Karas <akaras@inbox.ru> | 2013-02-21 02:07:46 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2013-02-21 02:07:46 +0300 |
commit | f6f2a8072c517ee47e77979db9dbb9ecb3430cb5 (patch) | |
tree | e2a1474d083313c9aa636085dcbeb2e6edbc5efb /src | |
parent | de51abd18f3cd9cd486837da69264b841d6cfff6 (diff) | |
download | mv-f6f2a8072c517ee47e77979db9dbb9ecb3430cb5.tar.gz mv-f6f2a8072c517ee47e77979db9dbb9ecb3430cb5.tar.bz2 mv-f6f2a8072c517ee47e77979db9dbb9ecb3430cb5.tar.xz mv-f6f2a8072c517ee47e77979db9dbb9ecb3430cb5.zip |
fix name signs update.
Some times $|A can not be visible in player name.
Diffstat (limited to 'src')
-rw-r--r-- | src/being.cpp | 4 |
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(); } |