| 1099 | } |
| 1100 | |
| 1101 | void CInventory::Items_SetCurrentEntityHud(bool current_entity) |
| 1102 | { |
| 1103 | TIItemContainer::iterator it; |
| 1104 | for (it = m_all.begin(); m_all.end() != it; ++it) |
| 1105 | { |
| 1106 | PIItem pIItem = *it; |
| 1107 | CWeapon* pWeapon = smart_cast<CWeapon*>(pIItem); |
| 1108 | if (pWeapon) |
| 1109 | { |
| 1110 | pWeapon->InitAddons(); |
| 1111 | pWeapon->UpdateAddonsVisibility(); |
| 1112 | } |
| 1113 | } |
| 1114 | }; |
| 1115 | |
| 1116 | // call this only via Actor()->SetWeaponHideState() |
| 1117 | void CInventory::SetSlotsBlocked(u16 mask, bool bBlock, bool now) |
no test coverage detected