fix on-RPC-command explosion sounds not playing the first time

This commit is contained in:
AzaezelX 2022-05-26 18:04:37 -05:00
parent 67771cad5b
commit c47cb54702
2 changed files with 44 additions and 3 deletions

View file

@ -652,7 +652,7 @@ void ExplosionData::packData(BitStream* stream)
PACKDATA_ASSET(ExplosionShape);
PACKDATA_ASSET(Sound);
PACKDATA_SOUNDASSET(Sound);
if (stream->writeFlag(particleEmitter))
stream->writeRangedU32(particleEmitter->getId(),DataBlockObjectIdFirst,DataBlockObjectIdLast);
@ -756,7 +756,7 @@ void ExplosionData::unpackData(BitStream* stream)
UNPACKDATA_ASSET(ExplosionShape);
UNPACKDATA_ASSET(Sound);
UNPACKDATA_SOUNDASSET(Sound);
if (stream->readFlag())
particleEmitterId = stream->readRangedU32(DataBlockObjectIdFirst, DataBlockObjectIdLast);