1
0
Fork 1
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:
David Cernat 2016-11-17 15:32:04 +02:00
parent 19240b825d
commit faea5221d3

View file

@ -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();
}
}