mirror of
https://github.com/TES3MP/TES3MP.git
synced 2025-09-27 23:21:20 -04:00
[Client] Update DedicatedPlayer creature if displayCreatureName changes
This commit is contained in:
parent
36e0f0471a
commit
50fe54af5d
@ -174,7 +174,7 @@ void DedicatedPlayer::setShapeshift()
|
|||||||
if (reference)
|
if (reference)
|
||||||
isNpc = ptr.getTypeName() == typeid(ESM::NPC).name();
|
isNpc = ptr.getTypeName() == typeid(ESM::NPC).name();
|
||||||
|
|
||||||
if (creatureRefId != previousCreatureRefId)
|
if (creatureRefId != previousCreatureRefId || displayCreatureName != previousDisplayCreatureName)
|
||||||
{
|
{
|
||||||
if (!creatureRefId.empty() && RecordHelper::doesCreatureExist(creatureRefId))
|
if (!creatureRefId.empty() && RecordHelper::doesCreatureExist(creatureRefId))
|
||||||
{
|
{
|
||||||
@ -229,6 +229,7 @@ void DedicatedPlayer::setShapeshift()
|
|||||||
}
|
}
|
||||||
|
|
||||||
previousCreatureRefId = creatureRefId;
|
previousCreatureRefId = creatureRefId;
|
||||||
|
previousDisplayCreatureName = displayCreatureName;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (ptr.getTypeName() == typeid(ESM::NPC).name())
|
if (ptr.getTypeName() == typeid(ESM::NPC).name())
|
||||||
|
@ -75,6 +75,7 @@ namespace mwmp
|
|||||||
|
|
||||||
std::string previousRace;
|
std::string previousRace;
|
||||||
std::string previousCreatureRefId;
|
std::string previousCreatureRefId;
|
||||||
|
bool previousDisplayCreatureName;
|
||||||
|
|
||||||
std::string creatureRecordId;
|
std::string creatureRecordId;
|
||||||
};
|
};
|
||||||
|
Loading…
x
Reference in New Issue
Block a user