MCPcopy Create free account
hub / github.com/OGSR/OGSR-Engine / Same

Method Same

ogsr_engine/xrGame/Inventory.cpp:703–715  ·  view source on GitHub ↗

ищем на поясе гранату такоже типа

Source from the content-addressed store, hash-verified

701
702//ищем на поясе гранату такоже типа
703PIItem CInventory::Same(const PIItem pIItem, bool bSearchRuck) const
704{
705 const TIItemContainer& list = bSearchRuck ? m_ruck : m_belt;
706
707 for (TIItemContainer::const_iterator it = list.begin(); list.end() != it; ++it)
708 {
709 const PIItem l_pIItem = *it;
710
711 if ((l_pIItem != pIItem) && !xr_strcmp(l_pIItem->object().cNameSect(), pIItem->object().cNameSect()))
712 return l_pIItem;
713 }
714 return NULL;
715}
716
717//ищем на поясе вещь для слота
718

Callers 1

PutNextToSlotMethod · 0.80

Calls 4

xr_strcmpFunction · 0.50
beginMethod · 0.45
endMethod · 0.45
objectMethod · 0.45

Tested by

no test coverage detected