From cd4b746bfab7b5d99dc7eb1c921ba49203a1437d Mon Sep 17 00:00:00 2001 From: kaetemi Date: Wed, 11 Nov 2020 13:21:59 +0800 Subject: [PATCH] Clean up mess --- .../game_item_manager/game_item.cpp | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-) diff --git a/ryzom/server/src/entities_game_service/game_item_manager/game_item.cpp b/ryzom/server/src/entities_game_service/game_item_manager/game_item.cpp index 04e5fc956..251c63d51 100644 --- a/ryzom/server/src/entities_game_service/game_item_manager/game_item.cpp +++ b/ryzom/server/src/entities_game_service/game_item_manager/game_item.cpp @@ -1191,7 +1191,6 @@ CGameItemPtr CGameItem::getItemCopy() item->_AllocatorData = alloc; // reset dynamic elements. ( we do it this way because people who add gameplay data properties will probably forget to update this method. So it is safe this way item->_StackSize = _StackSize; -// item->_IsOnTheGround = false; item->_Looter = CEntityId::Unknown; // item->_Id = itemId; item->_AllocatorData = alloc; @@ -1204,12 +1203,11 @@ CGameItemPtr CGameItem::getItemCopy() item->_CreatorId = _CreatorId; item->_LockCount = 0; item->_HP = item->maxDurability(); - - item->_LatencyEndDate = _LatencyEndDate; - item->_Enchantment = _Enchantment; - item->_SapLoad = _SapLoad; item->_LostHPremains = 0.0f; - item->_PhraseId = _PhraseId; + + // item->_Enchantment.clear(); + // item->_SapLoad = 0.0f; + item->computeItemWornState(); log_Item_Create(item->getItemId(), item->getSheetId(), item->getStackSize(), item->quality());