mirror of
https://github.com/TorqueGameEngines/Torque3D.git
synced 2026-02-13 11:43:49 +00:00
Merge branch 'development' of https://github.com/GarageGames/Torque3D into memberMess
# Conflicts: # Engine/source/sfx/sfxSystem.cpp
This commit is contained in:
commit
59130078e2
22 changed files with 72 additions and 71 deletions
|
|
@ -647,7 +647,7 @@ void SFXSystem::deleteWhenStopped( SFXSource* source )
|
|||
// If the source isn't already on the play-once source list,
|
||||
// put it there now.
|
||||
|
||||
Vector< SFXSource* >::iterator iter = find( mPlayOnceSources.begin(), mPlayOnceSources.end(), source );
|
||||
Vector< SFXSource* >::iterator iter = T3D::find( mPlayOnceSources.begin(), mPlayOnceSources.end(), source );
|
||||
if( iter == mPlayOnceSources.end() )
|
||||
mPlayOnceSources.push_back( source );
|
||||
}
|
||||
|
|
@ -674,7 +674,7 @@ void SFXSystem::_onRemoveSource( SFXSource* source )
|
|||
{
|
||||
// Check if it was a play once source.
|
||||
|
||||
Vector< SFXSource* >::iterator sourceIter = find( mPlayOnceSources.begin(), mPlayOnceSources.end(), source );
|
||||
Vector< SFXSource* >::iterator sourceIter = T3D::find( mPlayOnceSources.begin(), mPlayOnceSources.end(), source );
|
||||
if (sourceIter != mPlayOnceSources.end() )
|
||||
mPlayOnceSources.erase_fast(sourceIter);
|
||||
|
||||
|
|
@ -684,7 +684,7 @@ void SFXSystem::_onRemoveSource( SFXSource* source )
|
|||
|
||||
if( dynamic_cast< SFXSound* >( source ) )
|
||||
{
|
||||
SFXSoundVector::iterator vectorIter = find( mSounds.begin(), mSounds.end(), static_cast< SFXSound* >( source ) );
|
||||
SFXSoundVector::iterator vectorIter = T3D::find( mSounds.begin(), mSounds.end(), static_cast< SFXSound* >( source ) );
|
||||
if(vectorIter != mSounds.end() )
|
||||
mSounds.erase_fast(vectorIter);
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue