summaryrefslogtreecommitdiff
path: root/src/being.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/being.cpp')
-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();
}