| 62 | } |
| 63 | |
| 64 | void CObjectActionShow::execute() |
| 65 | { |
| 66 | inherited::execute(); |
| 67 | VERIFY(m_item); |
| 68 | if (!object().inventory().ActiveItem() || (object().inventory().ActiveItem()->object().ID() != m_item->object().ID())) |
| 69 | { |
| 70 | CHudItem* hud_item = smart_cast<CHudItem*>(object().inventory().ActiveItem()); |
| 71 | if (!hud_item) |
| 72 | { |
| 73 | object().inventory().Slot(m_item); |
| 74 | return; |
| 75 | } |
| 76 | if (!hud_item->IsPending()) |
| 77 | { |
| 78 | if (object().inventory().m_slots[m_item->GetSlot()].m_pIItem) |
| 79 | object().inventory().Ruck(object().inventory().m_slots[m_item->GetSlot()].m_pIItem); |
| 80 | //. object().inventory().SetActiveSlot(NO_ACTIVE_SLOT); |
| 81 | object().inventory().Slot(m_item); |
| 82 | } |
| 83 | } |
| 84 | } |
| 85 | |
| 86 | ////////////////////////////////////////////////////////////////////////// |
| 87 | // CObjectActionHide |
nothing calls this directly
no test coverage detected