forked from mirror/openmw-tes3mp
[Client] Don't send Attribute & Skill packets as werewolf, part 2
This commit is contained in:
parent
b64f379949
commit
b94c0a9991
1 changed files with 10 additions and 9 deletions
|
@ -97,15 +97,8 @@ void LocalPlayer::update()
|
|||
updateDeadState();
|
||||
updateEquipment();
|
||||
updateStatsDynamic();
|
||||
|
||||
// Only send attributes and skills if we are not a werewolf, or they will be
|
||||
// overwritten by the werewolf ones
|
||||
if (!isWerewolf)
|
||||
{
|
||||
updateAttributes();
|
||||
updateSkills();
|
||||
}
|
||||
|
||||
updateLevel();
|
||||
updateBounty();
|
||||
}
|
||||
|
@ -234,6 +227,10 @@ void LocalPlayer::updateStatsDynamic(bool forceUpdate)
|
|||
|
||||
void LocalPlayer::updateAttributes(bool forceUpdate)
|
||||
{
|
||||
// Only send attributes if we are not a werewolf, or they will be
|
||||
// overwritten by the werewolf ones
|
||||
if (isWerewolf) return;
|
||||
|
||||
MWWorld::Ptr ptrPlayer = getPlayerPtr();
|
||||
const MWMechanics::NpcStats &ptrNpcStats = ptrPlayer.getClass().getNpcStats(ptrPlayer);
|
||||
bool attributesChanged = false;
|
||||
|
@ -256,6 +253,10 @@ void LocalPlayer::updateAttributes(bool forceUpdate)
|
|||
|
||||
void LocalPlayer::updateSkills(bool forceUpdate)
|
||||
{
|
||||
// Only send skills if we are not a werewolf, or they will be
|
||||
// overwritten by the werewolf ones
|
||||
if (isWerewolf) return;
|
||||
|
||||
MWWorld::Ptr ptrPlayer = getPlayerPtr();
|
||||
const MWMechanics::NpcStats &ptrNpcStats = ptrPlayer.getClass().getNpcStats(ptrPlayer);
|
||||
|
||||
|
|
Loading…
Reference in a new issue