@@ -446,6 +446,7 @@ void CItemMulti::r_Write( CScript & s )
446446 m_pRegion->r_WriteBody ( s, " REGION." );
447447 }
448448}
449+
449450bool CItemMulti::r_WriteVal ( LPCTSTR pszKey, CGString & sVal , CTextConsole * pSrc )
450451{
451452 ADDTOCALLSTACK (" CItemMulti::r_WriteVal" );
@@ -507,60 +508,9 @@ bool CItemMulti::r_LoadVal( CScript & s )
507508 EXC_DEBUG_END;
508509 return false ;
509510}
511+
510512void CItemMulti::DupeCopy ( const CItem * pItem )
511513{
512514 ADDTOCALLSTACK (" CItemMulti::DupeCopy" );
513515 CItem::DupeCopy (pItem);
514516}
515-
516-
517- size_t CItemMulti::Multi_ListObjs (CObjBase ** ppObjList)
518- {
519- ADDTOCALLSTACK (" CItemMulti::Multi_ListObjs" );
520- // List all the objects in the structure.
521-
522- if (!IsTopLevel ())
523- return 0 ;
524-
525- int iMaxDist = Multi_GetMaxDist ();
526-
527- // always list myself first. All other items must see my new region !
528- size_t iCount = 0 ;
529- ppObjList[iCount++] = this ;
530-
531- CWorldSearch AreaChar (GetTopPoint (), iMaxDist);
532- AreaChar.SetAllShow (true );
533- AreaChar.SetSearchSquare (true );
534- while (iCount < MAX_MULTI_CONTENT)
535- {
536- CChar * pChar = AreaChar.GetChar ();
537- if (pChar == NULL )
538- break ;
539- if (!m_pRegion->IsInside2d (pChar->GetTopPoint ()))
540- continue ;
541- if (pChar->IsDisconnected () && pChar->m_pNPC )
542- continue ;
543-
544- ppObjList[iCount++] = pChar;
545- }
546-
547- CWorldSearch AreaItem (GetTopPoint (), iMaxDist);
548- AreaItem.SetSearchSquare (true );
549- while (iCount < MAX_MULTI_CONTENT)
550- {
551- CItem * pItem = AreaItem.GetItem ();
552- if (pItem == NULL )
553- break ;
554- if (pItem == this ) // already listed.
555- continue ;
556- if (!Multi_IsPartOf (pItem))
557- {
558- if (!m_pRegion->IsInside2d (pItem->GetTopPoint ()))
559- continue ;
560- if (!pItem->IsMovable ())
561- continue ;
562- }
563- ppObjList[iCount++] = pItem;
564- }
565- return (iCount);
566- }
0 commit comments