From f4621d85292038e66b14d969360714c669796e30 Mon Sep 17 00:00:00 2001 From: David Cernat Date: Fri, 30 Sep 2016 06:27:26 +0300 Subject: [PATCH] Use setLevelProgress when setting LocalPlayer's skills --- apps/openmw/mwmp/LocalPlayer.cpp | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/apps/openmw/mwmp/LocalPlayer.cpp b/apps/openmw/mwmp/LocalPlayer.cpp index 642f07e55..7781f9323 100644 --- a/apps/openmw/mwmp/LocalPlayer.cpp +++ b/apps/openmw/mwmp/LocalPlayer.cpp @@ -153,6 +153,9 @@ void LocalPlayer::updateLevel(bool forceUpdate) { CreatureStats()->mLevel = ptrNpcStats.getLevel(); GetNetworking()->GetPacket(ID_GAME_LEVEL)->Send(this); + + // Also update skills to refresh level progress + updateSkills(true); } } @@ -297,6 +300,8 @@ void LocalPlayer::setSkills() skillValue.readState(NpcStats()->mSkills[i]); ptrNpcStats->setSkill(i, skillValue); } + + ptrNpcStats->setLevelProgress(NpcStats()->mLevelProgress); } void LocalPlayer::setLevel()