------------------------------------------------------------------------------------------------------
| 1401 | |
| 1402 | // ------------------------------------------------------------------------------------------------------ |
| 1403 | void Tr2InteriorScene::RebuildSceneData( void ) |
| 1404 | { |
| 1405 | // Clear out any dynamics pending load |
| 1406 | m_dynamicsPendingLoad.Clear(); |
| 1407 | |
| 1408 | // Visit all dynamics |
| 1409 | for( PITr2InteriorDynamicVector::iterator it = m_dynamics.begin(); it != m_dynamics.end(); ++it ) |
| 1410 | { |
| 1411 | // Remove from the scene |
| 1412 | ( *it )->RemoveFromScene(); |
| 1413 | |
| 1414 | // Attempt to re-add to the scene |
| 1415 | if( !( *it )->AddToScene( m_apexScene ) && ( m_dynamicsPendingLoad.FindKey( ( *it ) ) == -1 ) ) |
| 1416 | { |
| 1417 | // Object not ready, add to pending load queue |
| 1418 | m_dynamicsPendingLoad.Insert( -1, ( *it ) ); |
| 1419 | } |
| 1420 | } |
| 1421 | } |
| 1422 | |
| 1423 | void Tr2InteriorScene::UpdateSceneFromScript( Be::Time time ) |
| 1424 | { |
nothing calls this directly
no test coverage detected