1
0
Fork 1
mirror of https://github.com/TES3MP/openmw-tes3mp.git synced 2025-02-20 20:09:41 +00:00

Constantly update skill progress from LocalPlayer

This commit is contained in:
David Cernat 2016-09-30 03:43:49 +03:00
parent 56a2c70911
commit 2ab619b0e3

View file

@ -108,6 +108,12 @@ void LocalPlayer::updateClassStats(bool forceUpdate)
ptrNpcStats.getSkill(i).writeState(NpcStats()->mSkills[i]);
isUpdatingSkills = true;
}
// If we only have skill progress, update the state for relevant skills
// but don't send a packet just because of this (to avoid spam)
else if (ptrNpcStats.getSkill(i).getProgress() != NpcStats()->mSkills[i].mProgress)
{
ptrNpcStats.getSkill(i).writeState(NpcStats()->mSkills[i]);
}
}
for (int i = 0; i < 8; ++i)