From df0f9b0f5ec540c2c863b14b28b1e55359f50bdb Mon Sep 17 00:00:00 2001 From: David Cernat Date: Tue, 1 May 2018 19:34:21 +0300 Subject: [PATCH] [Client] Require a certain Skill progress amount before sending packet --- apps/openmw/mwmp/LocalPlayer.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/apps/openmw/mwmp/LocalPlayer.cpp b/apps/openmw/mwmp/LocalPlayer.cpp index 8d329e1b6..94e88018d 100644 --- a/apps/openmw/mwmp/LocalPlayer.cpp +++ b/apps/openmw/mwmp/LocalPlayer.cpp @@ -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 if (ptrNpcStats.getSkill(i).getBase() != npcStats.mSkills[i].mBase || 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) { skillIndexChanges.push_back(i);