forked from mirror/openmw-tes3mp
[Client] Update DedicatedPlayer creature if displayCreatureName changes
This commit is contained in:
parent
36e0f0471a
commit
50fe54af5d
2 changed files with 3 additions and 1 deletions
|
@ -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…
Reference in a new issue