mirror of
https://github.com/TES3MP/openmw-tes3mp.git
synced 2025-04-18 17:36:47 +00:00
[Client] Require a certain Skill progress amount before sending packet
This commit is contained in:
parent
1b1e5e86d1
commit
df0f9b0f5e
1 changed files with 1 additions and 1 deletions
|
@ -290,7 +290,7 @@ void LocalPlayer::updateSkills(bool forceUpdate)
|
||||||
// Update a skill if its base value has changed at all or its progress has changed enough
|
// Update a skill if its base value has changed at all or its progress has changed enough
|
||||||
if (ptrNpcStats.getSkill(i).getBase() != npcStats.mSkills[i].mBase ||
|
if (ptrNpcStats.getSkill(i).getBase() != npcStats.mSkills[i].mBase ||
|
||||||
ptrNpcStats.getSkill(i).getModifier() != npcStats.mSkills[i].mMod ||
|
ptrNpcStats.getSkill(i).getModifier() != npcStats.mSkills[i].mMod ||
|
||||||
ptrNpcStats.getSkill(i).getProgress() != npcStats.mSkills[i].mProgress ||
|
abs(ptrNpcStats.getSkill(i).getProgress() - npcStats.mSkills[i].mProgress) > 0.75 ||
|
||||||
forceUpdate)
|
forceUpdate)
|
||||||
{
|
{
|
||||||
skillIndexChanges.push_back(i);
|
skillIndexChanges.push_back(i);
|
||||||
|
|
Loading…
Reference in a new issue