mirror of
https://github.com/TorqueGameEngines/Torque3D.git
synced 2026-07-16 00:54:54 +00:00
Merge pull request #394 from lornemcintosh/development
Clean up SFXSources in Player class
This commit is contained in:
commit
a8543a3998
1 changed files with 6 additions and 0 deletions
|
|
@ -1763,6 +1763,12 @@ void Player::onRemove()
|
||||||
setControlObject(0);
|
setControlObject(0);
|
||||||
scriptOnRemove();
|
scriptOnRemove();
|
||||||
removeFromScene();
|
removeFromScene();
|
||||||
|
|
||||||
|
if ( isGhost() )
|
||||||
|
{
|
||||||
|
SFX_DELETE( mMoveBubbleSound );
|
||||||
|
SFX_DELETE( mWaterBreathSound );
|
||||||
|
}
|
||||||
|
|
||||||
U32 i;
|
U32 i;
|
||||||
for( i=0; i<PlayerData::NUM_SPLASH_EMITTERS; i++ )
|
for( i=0; i<PlayerData::NUM_SPLASH_EMITTERS; i++ )
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue