From a2466bfd3a5e063b2714d727178bc66076f81fd4 Mon Sep 17 00:00:00 2001 From: DavidWyand-GG Date: Fri, 23 Nov 2012 13:00:12 -0500 Subject: [PATCH] Fix for Issue #152 for Unmatch Bitstream This corrects for changes made in Pull Request #112. --- Engine/source/T3D/gameBase/gameConnectionEvents.cpp | 6 +++--- Engine/source/sfx/sfxDescription.cpp | 4 ++-- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/Engine/source/T3D/gameBase/gameConnectionEvents.cpp b/Engine/source/T3D/gameBase/gameConnectionEvents.cpp index 04919cf8f..927814a52 100644 --- a/Engine/source/T3D/gameBase/gameConnectionEvents.cpp +++ b/Engine/source/T3D/gameBase/gameConnectionEvents.cpp @@ -352,9 +352,9 @@ void Sim3DAudioEvent::unpack(NetConnection *con, BitStream *bstream) if (bstream->readFlag()) { QuatF q; - q.x = bstream->readFloat(SoundRotBits); - q.y = bstream->readFloat(SoundRotBits); - q.z = bstream->readFloat(SoundRotBits); + q.x = bstream->readSignedFloat(SoundRotBits); + q.y = bstream->readSignedFloat(SoundRotBits); + q.z = bstream->readSignedFloat(SoundRotBits); F32 value = ((q.x * q.x) + (q.y * q.y) + (q.z * q.z)); // #ifdef __linux // Hmm, this should never happen, but it does... diff --git a/Engine/source/sfx/sfxDescription.cpp b/Engine/source/sfx/sfxDescription.cpp index 658e15a45..df46734b6 100644 --- a/Engine/source/sfx/sfxDescription.cpp +++ b/Engine/source/sfx/sfxDescription.cpp @@ -576,8 +576,8 @@ void SFXDescription::unpackData( BitStream *stream ) Parent::unpackData( stream ); mVolume = stream->readFloat( 6 ); - mPitch = stream->readFloat( 6 ); - mPriority = stream->readFloat( 6 ); + stream->read( &mPitch ); + stream->read( &mPriority ); mIsLooping = stream->readFlag(); mFadeLoops = stream->readFlag();