Compare commits

..

No commits in common. '60-weapon-does-not-show-in-both-hands-on-load-in' and 'main/gingo-test' have entirely different histories.

@ -1168,19 +1168,6 @@ void CInventoryManager::unequip(const std::string &invPath)
}
}
void CInventoryManager::onUpdateEquipHands()
{
// update hands slots after initial BAG inventory has received
CCDBNodeLeaf *pNL;
pNL = NLGUI::CDBManager::getInstance()->getDbProp(LOCAL_INVENTORY ":HAND:0:INDEX_IN_BAG", false);
if (pNL && pNL->getValue32() != 0)
_DBEquipObs.update(pNL);
pNL = NLGUI::CDBManager::getInstance()->getDbProp(LOCAL_INVENTORY ":HAND:1:INDEX_IN_BAG", false);
if (pNL && pNL->getValue32() != 0)
_DBEquipObs.update(pNL);
}
// ***************************************************************************
// Observer on DB equipment branch

@ -305,7 +305,6 @@ public:
// Called on impulse
void onReceiveItemInfo(const CItemInfos &itemInfo);
void onRefreshItemInfoVersion(uint16 slotId, uint8 infoVersion);
void onUpdateEquipHands();
// Log for debug
void debugItemInfoWaiters();
void debugItemInfoCache() const;

@ -2890,8 +2890,6 @@ void impulseInitInventory (NLMISC::CBitMemStream &impulse)
impulseUpdateInventory( impulse );
IngameDbMngr.setInitPacketReceived();
nlinfo( "DB_INIT:INV done (%u bytes)", impulse.getPos()-p );
getInventory().onUpdateEquipHands();
}
//-----------------------------------------------

Loading…
Cancel
Save