Update sfxEmitter.cpp

This commit is contained in:
marauder2k7 2026-05-24 20:03:44 +01:00
parent f607c24498
commit e4ff55b52c

View file

@ -1111,7 +1111,8 @@ 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
@ -1145,7 +1147,8 @@ 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