mirror of
https://github.com/TorqueGameEngines/Torque3D.git
synced 2026-02-13 11:43:49 +00:00
clean out of the manual getSFXProfile() methods
This commit is contained in:
parent
7b137c2ee8
commit
ef652ad8b9
8 changed files with 8 additions and 37 deletions
|
|
@ -276,7 +276,7 @@ bool SplashData::preload(bool server, String &errorStr)
|
|||
if (Parent::preload(server, errorStr) == false)
|
||||
return false;
|
||||
|
||||
if (!server && !getSFXProfile())
|
||||
if (!server && !getSoundProfile())
|
||||
return false;
|
||||
|
||||
if (!server)
|
||||
|
|
@ -681,7 +681,7 @@ void Splash::spawnExplosion()
|
|||
|
||||
/// could just play the explosion one, but explosion could be weapon specific,
|
||||
/// splash sound could be liquid specific. food for thought.
|
||||
SFXProfile* sound_prof = mDataBlock->getSFXProfile();
|
||||
SFXProfile* sound_prof = mDataBlock->getSoundProfile();
|
||||
if (sound_prof)
|
||||
{
|
||||
SFX->playOnce(sound_prof, &getTransform());
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue