[Client] Update DedicatedPlayer creature if displayCreatureName changes

This commit is contained in:
David Cernat 2018-04-17 15:23:10 +03:00
parent 36e0f0471a
commit 50fe54af5d
2 changed files with 3 additions and 1 deletions

View file

@ -174,7 +174,7 @@ void DedicatedPlayer::setShapeshift()
if (reference)
isNpc = ptr.getTypeName() == typeid(ESM::NPC).name();
if (creatureRefId != previousCreatureRefId)
if (creatureRefId != previousCreatureRefId || displayCreatureName != previousDisplayCreatureName)
{
if (!creatureRefId.empty() && RecordHelper::doesCreatureExist(creatureRefId))
{
@ -229,6 +229,7 @@ void DedicatedPlayer::setShapeshift()
}
previousCreatureRefId = creatureRefId;
previousDisplayCreatureName = displayCreatureName;
}
if (ptr.getTypeName() == typeid(ESM::NPC).name())

View file

@ -75,6 +75,7 @@ namespace mwmp
std::string previousRace;
std::string previousCreatureRefId;
bool previousDisplayCreatureName;
std::string creatureRecordId;
};