mirror of
https://github.com/TES3MP/openmw-tes3mp.git
synced 2025-02-20 20:09:41 +00:00
Use LocalPlayer's updateInventory() every cell change, not every frame
This commit is contained in:
parent
19240b825d
commit
faea5221d3
1 changed files with 4 additions and 2 deletions
|
@ -62,7 +62,6 @@ void LocalPlayer::update()
|
|||
updateAttackState();
|
||||
updateDeadState();
|
||||
updateEquipped();
|
||||
updateInventory();
|
||||
updateDynamicStats();
|
||||
updateAttributes();
|
||||
updateSkills();
|
||||
|
@ -349,8 +348,11 @@ void LocalPlayer::updateCell(bool forceUpdate)
|
|||
getNetworking()->getPlayerPacket((RakNet::MessageID) ID_GAME_CELL)->Packet(&bs, this, true);
|
||||
getNetworking()->sendData(&bs);
|
||||
|
||||
// Also update skill progress
|
||||
// Also force an update to skills (to send all progress to skill increases)
|
||||
updateSkills(true);
|
||||
|
||||
// Also check if the inventory needs to be updated
|
||||
updateInventory();
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue