clean out of the manual getSFXProfile() methods

This commit is contained in:
AzaezelX 2021-09-26 20:07:49 -05:00
parent 7b137c2ee8
commit ef652ad8b9
8 changed files with 8 additions and 37 deletions

View file

@ -189,7 +189,7 @@ bool PrecipitationData::preload( bool server, String &errorStr )
if( Parent::preload( server, errorStr) == false)
return false;
if (!server && !getSFXProfile())
if (!server && !getSoundProfile())
return false;
return true;
@ -597,9 +597,9 @@ bool Precipitation::onNewDataBlock( GameBaseData *dptr, bool reload )
{
SFX_DELETE( mAmbientSound );
if ( mDataBlock->getSFXProfile())
if ( mDataBlock->getSoundProfile())
{
mAmbientSound = SFX->createSource(mDataBlock->getSFXProfile(), &getTransform() );
mAmbientSound = SFX->createSource(mDataBlock->getSoundProfile(), &getTransform() );
if ( mAmbientSound )
mAmbientSound->play();
}