Merge pull request #1751 from marauder2k9-torque/SFXEmitter-fix-tracknotupdating
Some checks failed
Linux Build / Ubuntu Latest GCC (push) Has been cancelled
MacOSX Build / MacOSX Latest Clang (push) Has been cancelled
Windows Build / Windows Latest MSVC (push) Has been cancelled

Update sfxEmitter.cpp
This commit is contained in:
Brian Roberts 2026-05-24 14:32:26 -05:00 committed by GitHub
commit aacb9b713e
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -521,7 +521,7 @@ void SFXEmitter::unpackUpdate( NetConnection *conn, BitStream *stream )
}
// track
if (stream->readFlag()) // DirtyUpdateMask
if (_readDirtyFlag(stream, Track)) // DirtyUpdateMask
{
initialUpdate = false;
UNPACK_ASSET(conn, Sound);
@ -1109,9 +1109,10 @@ void SFXEmitter::_renderCone( F32 radialIncrements, F32 sweepIncrements,
void SFXEmitter::play()
{
if( mSource )
if (mSource)
mSource->play();
else
if(isServerObject())
{
// By clearing the playback masks first we
// ensure the last playback command called
@ -1128,7 +1129,8 @@ void SFXEmitter::pause()
{
if (mSource)
mSource->pause();
else
if(isServerObject())
{
// By clearing the playback masks first we
// ensure the last playback command called
@ -1143,9 +1145,10 @@ void SFXEmitter::pause()
void SFXEmitter::stop()
{
if ( mSource )
if (mSource)
mSource->stop();
else
if(isServerObject())
{
// By clearing the playback masks first we
// ensure the last playback command called