From fae6242d4ef6ca34d131054484acf5efc2fcba70 Mon Sep 17 00:00:00 2001 From: SmallJoker Date: Sun, 25 Aug 2019 10:55:27 +0200 Subject: Send cumulated inventory changes only each step (#8856) Applies to player and detached inventories --- src/inventorymanager.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'src/inventorymanager.cpp') diff --git a/src/inventorymanager.cpp b/src/inventorymanager.cpp index 24d1fa6ff..02cb9e3a4 100644 --- a/src/inventorymanager.cpp +++ b/src/inventorymanager.cpp @@ -524,9 +524,9 @@ void IMoveAction::apply(InventoryManager *mgr, ServerActiveObject *player, IGame } } - mgr->setInventoryModified(from_inv, false); + mgr->setInventoryModified(from_inv); if (inv_from != inv_to) - mgr->setInventoryModified(to_inv, false); + mgr->setInventoryModified(to_inv); } void IMoveAction::clientApply(InventoryManager *mgr, IGameDef *gamedef) @@ -671,7 +671,7 @@ void IDropAction::apply(InventoryManager *mgr, ServerActiveObject *player, IGame if (item2.count != actually_dropped_count) errorstream<<"Could not take dropped count of items"<setInventoryModified(from_inv, false); + mgr->setInventoryModified(from_inv); } } -- cgit v1.2.3