mirror of
https://github.com/TorqueGameEngines/Torque3D.git
synced 2026-02-13 03:33:48 +00:00
Merge branch 'development' into EngineAPI-Refactor
This commit is contained in:
commit
6cf0c9e360
1933 changed files with 102328 additions and 70545 deletions
|
|
@ -674,9 +674,9 @@ void SFXSystem::_onRemoveSource( SFXSource* source )
|
|||
{
|
||||
// Check if it was a play once source.
|
||||
|
||||
Vector< SFXSource* >::iterator iter = T3D::find( mPlayOnceSources.begin(), mPlayOnceSources.end(), source );
|
||||
if ( iter != mPlayOnceSources.end() )
|
||||
mPlayOnceSources.erase_fast( iter );
|
||||
Vector< SFXSource* >::iterator sourceIter = T3D::find( mPlayOnceSources.begin(), mPlayOnceSources.end(), source );
|
||||
if (sourceIter != mPlayOnceSources.end() )
|
||||
mPlayOnceSources.erase_fast(sourceIter);
|
||||
|
||||
// Update the stats.
|
||||
|
||||
|
|
@ -684,9 +684,9 @@ void SFXSystem::_onRemoveSource( SFXSource* source )
|
|||
|
||||
if( dynamic_cast< SFXSound* >( source ) )
|
||||
{
|
||||
SFXSoundVector::iterator iter = T3D::find( mSounds.begin(), mSounds.end(), static_cast< SFXSound* >( source ) );
|
||||
if( iter != mSounds.end() )
|
||||
mSounds.erase_fast( iter );
|
||||
SFXSoundVector::iterator vectorIter = T3D::find( mSounds.begin(), mSounds.end(), static_cast< SFXSound* >( source ) );
|
||||
if(vectorIter != mSounds.end() )
|
||||
mSounds.erase_fast(vectorIter);
|
||||
|
||||
mStatNumSounds = mSounds.size();
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue