summaryrefslogtreecommitdiff
path: root/src/being/being.cpp
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2015-06-16 17:30:45 +0300
committerAndrei Karas <akaras@inbox.ru>2015-06-16 17:30:45 +0300
commitc2aaab0b81248dea60472934c5be64c417376549 (patch)
tree62f45249705fdf870e1f9f88de102dd521199dae /src/being/being.cpp
parentb5b386c2de8c9b988ed19c979f0d4b1d7fcfdbd4 (diff)
downloadplus-c2aaab0b81248dea60472934c5be64c417376549.tar.gz
plus-c2aaab0b81248dea60472934c5be64c417376549.tar.bz2
plus-c2aaab0b81248dea60472934c5be64c417376549.tar.xz
plus-c2aaab0b81248dea60472934c5be64c417376549.zip
Add team id into beings cache.
Diffstat (limited to 'src/being/being.cpp')
-rw-r--r--src/being/being.cpp4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/being/being.cpp b/src/being/being.cpp
index 08f055ed2..7f7c9fa65 100644
--- a/src/being/being.cpp
+++ b/src/being/being.cpp
@@ -2367,6 +2367,7 @@ bool Being::updateFromCache()
setLevel(entry->getLevel());
setPvpRank(entry->getPvpRank());
setIp(entry->getIp());
+ setTeamId(entry->getTeamId());
mAdvanced = entry->isAdvanced();
if (mAdvanced)
@@ -2388,7 +2389,7 @@ bool Being::updateFromCache()
}
updateAwayEffect();
- if (mType == ActorType::Player)
+ if (mType == ActorType::Player || mTeamId)
updateColors();
return true;
}
@@ -2423,6 +2424,7 @@ void Being::addToCache() const
entry->setPvpRank(getPvpRank());
entry->setIp(getIp());
entry->setAdvanced(isAdvanced());
+ entry->setTeamId(getTeamId());
if (isAdvanced())
{
int flags = 0;