| 149 | } |
| 150 | |
| 151 | void Tr2TimelineController::Stop() |
| 152 | { |
| 153 | if( !m_isActive ) |
| 154 | { |
| 155 | return; |
| 156 | } |
| 157 | CcpAutoMutex lock( g_controllerMutex ); |
| 158 | for( size_t i = 0; i < m_actions.size(); ++i ) |
| 159 | { |
| 160 | auto action = m_actions[i]; |
| 161 | auto& entry = m_entries[i]; |
| 162 | if( InRange( m_time, entry ) && IsActionEnabled( i ) ) |
| 163 | { |
| 164 | action->Stop( *this ); |
| 165 | } |
| 166 | } |
| 167 | m_isActive = false; |
| 168 | m_time = 0; |
| 169 | } |
| 170 | |
| 171 | void Tr2TimelineController::Update( float normalizedUpdateFrequency ) |
| 172 | { |
no test coverage detected