[Client] Update DedicatedPlayer creature if displayCreatureName changes

0.6.3
David Cernat 7 years ago
parent 36e0f0471a
commit 50fe54af5d

@ -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())

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

Loading…
Cancel
Save