mirror of
https://github.com/TES3MP/openmw-tes3mp.git
synced 2025-02-01 21:45:38 +00:00
Use setLevelProgress when setting LocalPlayer's skills
This commit is contained in:
parent
8fbc6f31f1
commit
f4621d8529
1 changed files with 5 additions and 0 deletions
|
@ -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()
|
||||
|
|
Loading…
Reference in a new issue