Untitled
Anonymous
c_cpp
08/19/2023 10:16 PM
376 B
36
No Index
void Player::updateInventoryWeight()
{
inventoryWeight = 0.00;
if(hasFlag(PlayerFlag_HasInfiniteCapacity))
return;
#ifdef 0
for(int32_t i = SLOT_FIRST; i < SLOT_LAST; ++i)
{
if(Item* item = getInventoryItem((slots_t)i))
inventoryWeight += item->getWeight();
}
#endif
}Editor is loading...