mirror of
https://github.com/TorqueGameEngines/Torque3D.git
synced 2026-07-13 15:44:36 +00:00
Update sfxEmitter.cpp
This commit is contained in:
parent
f607c24498
commit
e4ff55b52c
1 changed files with 8 additions and 5 deletions
|
|
@ -1109,9 +1109,10 @@ void SFXEmitter::_renderCone( F32 radialIncrements, F32 sweepIncrements,
|
||||||
|
|
||||||
void SFXEmitter::play()
|
void SFXEmitter::play()
|
||||||
{
|
{
|
||||||
if( mSource )
|
if (mSource)
|
||||||
mSource->play();
|
mSource->play();
|
||||||
else
|
|
||||||
|
if(isServerObject())
|
||||||
{
|
{
|
||||||
// By clearing the playback masks first we
|
// By clearing the playback masks first we
|
||||||
// ensure the last playback command called
|
// ensure the last playback command called
|
||||||
|
|
@ -1128,7 +1129,8 @@ void SFXEmitter::pause()
|
||||||
{
|
{
|
||||||
if (mSource)
|
if (mSource)
|
||||||
mSource->pause();
|
mSource->pause();
|
||||||
else
|
|
||||||
|
if(isServerObject())
|
||||||
{
|
{
|
||||||
// By clearing the playback masks first we
|
// By clearing the playback masks first we
|
||||||
// ensure the last playback command called
|
// ensure the last playback command called
|
||||||
|
|
@ -1143,9 +1145,10 @@ void SFXEmitter::pause()
|
||||||
|
|
||||||
void SFXEmitter::stop()
|
void SFXEmitter::stop()
|
||||||
{
|
{
|
||||||
if ( mSource )
|
if (mSource)
|
||||||
mSource->stop();
|
mSource->stop();
|
||||||
else
|
|
||||||
|
if(isServerObject())
|
||||||
{
|
{
|
||||||
// By clearing the playback masks first we
|
// By clearing the playback masks first we
|
||||||
// ensure the last playback command called
|
// ensure the last playback command called
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue