mirror of
https://github.com/TorqueGameEngines/Torque3D.git
synced 2026-07-14 08:04:40 +00:00
Merge pull request #153 from DavidWyand-GG/issue152-UnmatchedBitstream
Fix for Issue #152 for Unmatch Bitstream
This commit is contained in:
commit
f9cb217132
2 changed files with 5 additions and 5 deletions
|
|
@ -352,9 +352,9 @@ void Sim3DAudioEvent::unpack(NetConnection *con, BitStream *bstream)
|
||||||
|
|
||||||
if (bstream->readFlag()) {
|
if (bstream->readFlag()) {
|
||||||
QuatF q;
|
QuatF q;
|
||||||
q.x = bstream->readFloat(SoundRotBits);
|
q.x = bstream->readSignedFloat(SoundRotBits);
|
||||||
q.y = bstream->readFloat(SoundRotBits);
|
q.y = bstream->readSignedFloat(SoundRotBits);
|
||||||
q.z = bstream->readFloat(SoundRotBits);
|
q.z = bstream->readSignedFloat(SoundRotBits);
|
||||||
F32 value = ((q.x * q.x) + (q.y * q.y) + (q.z * q.z));
|
F32 value = ((q.x * q.x) + (q.y * q.y) + (q.z * q.z));
|
||||||
// #ifdef __linux
|
// #ifdef __linux
|
||||||
// Hmm, this should never happen, but it does...
|
// Hmm, this should never happen, but it does...
|
||||||
|
|
|
||||||
|
|
@ -576,8 +576,8 @@ void SFXDescription::unpackData( BitStream *stream )
|
||||||
Parent::unpackData( stream );
|
Parent::unpackData( stream );
|
||||||
|
|
||||||
mVolume = stream->readFloat( 6 );
|
mVolume = stream->readFloat( 6 );
|
||||||
mPitch = stream->readFloat( 6 );
|
stream->read( &mPitch );
|
||||||
mPriority = stream->readFloat( 6 );
|
stream->read( &mPriority );
|
||||||
|
|
||||||
mIsLooping = stream->readFlag();
|
mIsLooping = stream->readFlag();
|
||||||
mFadeLoops = stream->readFlag();
|
mFadeLoops = stream->readFlag();
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue