Пример #1
0
void CItemMulti::MultiUnRealizeRegion()
{
	DEBUG_CHECK( IsType(IT_MULTI) || IsType(IT_SHIP) );

	if ( m_pRegion == NULL )
		return;

	m_pRegion->UnRealizeRegion();

	// find all creatures in the region and remove this from them.
	CWorldSearch Area( m_pRegion->m_pt, Multi_GetMaxDist() );
	while (true)
	{
		CChar * pChar = Area.GetChar();
		if ( pChar == NULL )
			break;
		if ( pChar->m_pArea != m_pRegion )
			continue;
		pChar->MoveToRegionReTest( REGION_TYPE_AREA );
	}
}