Broadcast the Equipped Item, if the Slot is changed.
This commit is contained in:
parent
594ddd86a0
commit
99b9e6dce5
@ -204,6 +204,12 @@ void cInventory::SetSlot(int a_SlotNum, const cItem & a_Item)
|
|||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
Grid->SetSlot(GridSlotNum, a_Item);
|
Grid->SetSlot(GridSlotNum, a_Item);
|
||||||
|
|
||||||
|
// Broadcast the Equipped Item, if the Slot is changed.
|
||||||
|
if ((Grid == &m_HotbarSlots) && (m_EquippedSlotNum == (a_SlotNum - invHotbarOffset)))
|
||||||
|
{
|
||||||
|
m_Owner.GetWorld()->BroadcastEntityEquipment(m_Owner, 0, a_Item, m_Owner.GetClientHandle());
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user